Struct fog_pack::types::Identity [−][src]
pub struct Identity { /* fields omitted */ }Expand description
An Identity, wrapping a public signing key.
This is useful as an identifier of who has created a given signature.
Implementations
Get the raw public signing key contained within.
Convert into a byte vector. For extending an existing byte vector, see
encode_vec.
Attempt to parse a base58-encoded Identity.
Encode onto an existing byte vector. Writes out the version followed by the public signing key. It does not include any length information in the encoding.
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Identity, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Identity, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl UnwindSafe for Identity
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self