Struct grid_sdk::protocol::track_and_trace::state::AssociatedAgent
source · [−]pub struct AssociatedAgent { /* private fields */ }
Expand description
Native representation of an AssociatedAgent
This struct represents a cryptographic public key that identifies an agent associated with
a Record
Implementations
sourceimpl AssociatedAgent
impl AssociatedAgent
pub fn agent_id(&self) -> &str
pub fn timestamp(&self) -> &u64
pub fn into_builder(self) -> AssociatedAgentBuilder
Trait Implementations
sourceimpl Clone for AssociatedAgent
impl Clone for AssociatedAgent
sourcefn clone(&self) -> AssociatedAgent
fn clone(&self) -> AssociatedAgent
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 more
sourceimpl Debug for AssociatedAgent
impl Debug for AssociatedAgent
sourceimpl FromBytes<AssociatedAgent> for AssociatedAgent
impl FromBytes<AssociatedAgent> for AssociatedAgent
fn from_bytes(bytes: &[u8]) -> Result<AssociatedAgent, ProtoConversionError>
sourceimpl FromNative<AssociatedAgent> for Record_AssociatedAgent
impl FromNative<AssociatedAgent> for Record_AssociatedAgent
fn from_native(native: AssociatedAgent) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<Record_AssociatedAgent> for AssociatedAgent
impl FromProto<Record_AssociatedAgent> for AssociatedAgent
fn from_proto(
proto: Record_AssociatedAgent
) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for AssociatedAgent
impl IntoBytes for AssociatedAgent
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<AssociatedAgent> for Record_AssociatedAgent
impl IntoNative<AssociatedAgent> for Record_AssociatedAgent
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<Record_AssociatedAgent> for AssociatedAgent
impl IntoProto<Record_AssociatedAgent> for AssociatedAgent
fn into_proto(self) -> Result<T, ProtoConversionError>
sourceimpl PartialEq<AssociatedAgent> for AssociatedAgent
impl PartialEq<AssociatedAgent> for AssociatedAgent
sourcefn eq(&self, other: &AssociatedAgent) -> bool
fn eq(&self, other: &AssociatedAgent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AssociatedAgent) -> bool
fn ne(&self, other: &AssociatedAgent) -> bool
This method tests for !=
.
impl StructuralPartialEq for AssociatedAgent
Auto Trait Implementations
impl RefUnwindSafe for AssociatedAgent
impl Send for AssociatedAgent
impl Sync for AssociatedAgent
impl Unpin for AssociatedAgent
impl UnwindSafe for AssociatedAgent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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