Struct core::event_request::StateRequest
[−]pub struct StateRequest {
pub subject_id: DigestIdentifier,
pub payload: RequestPayload,
}
Fields
subject_id: DigestIdentifier
payload: RequestPayload
Trait Implementations
impl BorshDeserialize for StateRequestwhere
DigestIdentifier: BorshDeserialize,
RequestPayload: BorshDeserialize,
impl BorshDeserialize for StateRequestwhere
DigestIdentifier: BorshDeserialize,
RequestPayload: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<StateRequest, Error>
fn deserialize(buf: &mut &[u8]) -> Result<StateRequest, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
impl BorshSerialize for StateRequestwhere
DigestIdentifier: BorshSerialize,
RequestPayload: BorshSerialize,
impl BorshSerialize for StateRequestwhere
DigestIdentifier: BorshSerialize,
RequestPayload: BorshSerialize,
impl Clone for StateRequest
impl Clone for StateRequest
fn clone(&self) -> StateRequest
fn clone(&self) -> StateRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for StateRequest
impl Debug for StateRequest
impl<'de> Deserialize<'de> for StateRequest
impl<'de> Deserialize<'de> for StateRequest
fn deserialize<__D>(
__deserializer: __D
) -> Result<StateRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StateRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<StateRequest> for StateRequest
impl PartialEq<StateRequest> for StateRequest
fn eq(&self, other: &StateRequest) -> bool
fn eq(&self, other: &StateRequest) -> bool
impl Serialize for StateRequest
impl Serialize for StateRequest
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl ToSchema for StateRequest
impl ToSchema for StateRequest
impl Eq for StateRequest
impl StructuralEq for StateRequest
impl StructuralPartialEq for StateRequest
Auto Trait Implementations
impl RefUnwindSafe for StateRequest
impl Send for StateRequest
impl Sync for StateRequest
impl Unpin for StateRequest
impl UnwindSafe for StateRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.