Struct hdk_crud::WrappedAgentPubKey
source · [−]pub struct WrappedAgentPubKey(pub AgentPubKey);
Expand description
A version of an [AgentPubKey] that will automatically serialize and deserialize to/from string based hashes for use on your client side. It is used by functions throughout this library. You may wish to use it as a type for your fields on an entry type, if trying to reference an [AgentPubKey].
Tuple Fields
0: AgentPubKey
Implementations
Trait Implementations
sourceimpl Clone for WrappedAgentPubKey
impl Clone for WrappedAgentPubKey
sourcefn clone(&self) -> WrappedAgentPubKey
fn clone(&self) -> WrappedAgentPubKey
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 WrappedAgentPubKey
impl Debug for WrappedAgentPubKey
sourceimpl<'de> Deserialize<'de> for WrappedAgentPubKey
impl<'de> Deserialize<'de> for WrappedAgentPubKey
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WrappedAgentPubKey> for WrappedAgentPubKey
impl PartialEq<WrappedAgentPubKey> for WrappedAgentPubKey
sourcefn eq(&self, other: &WrappedAgentPubKey) -> bool
fn eq(&self, other: &WrappedAgentPubKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WrappedAgentPubKey) -> bool
fn ne(&self, other: &WrappedAgentPubKey) -> bool
This method tests for !=
.
sourceimpl Serialize for WrappedAgentPubKey
impl Serialize for WrappedAgentPubKey
sourceimpl TryFrom<&'_ WrappedAgentPubKey> for SerializedBytes
impl TryFrom<&'_ WrappedAgentPubKey> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: &WrappedAgentPubKey
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: &WrappedAgentPubKey
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<SerializedBytes> for WrappedAgentPubKey
impl TryFrom<SerializedBytes> for WrappedAgentPubKey
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
sb: SerializedBytes
) -> Result<WrappedAgentPubKey, SerializedBytesError>
fn try_from(
sb: SerializedBytes
) -> Result<WrappedAgentPubKey, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<WrappedAgentPubKey> for SerializedBytes
impl TryFrom<WrappedAgentPubKey> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: WrappedAgentPubKey
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: WrappedAgentPubKey
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
impl StructuralPartialEq for WrappedAgentPubKey
Auto Trait Implementations
impl RefUnwindSafe for WrappedAgentPubKey
impl Send for WrappedAgentPubKey
impl Sync for WrappedAgentPubKey
impl Unpin for WrappedAgentPubKey
impl UnwindSafe for WrappedAgentPubKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more