pub enum IdentityDocument {
V10(IdentityDocumentV10),
}Expand description
Identity document
Variants§
V10(IdentityDocumentV10)
Identity document V10
Trait Implementations§
Source§impl Clone for IdentityDocument
impl Clone for IdentityDocument
Source§fn clone(&self) -> IdentityDocument
fn clone(&self) -> IdentityDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentityDocument
impl Debug for IdentityDocument
Source§impl<'de> Deserialize<'de> for IdentityDocument
impl<'de> Deserialize<'de> for IdentityDocument
Source§fn 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
Source§impl Document for IdentityDocument
impl Document for IdentityDocument
Source§type PublicKey = PubKeyEnum
type PublicKey = PubKeyEnum
Type of the
PublicKey used by the document.Source§fn blockstamp(&self) -> Blockstamp
fn blockstamp(&self) -> Blockstamp
Get document blockstamp
Source§fn signatures(&self) -> SmallVec<[<Self::PublicKey as PublicKey>::Signature; 1]>
fn signatures(&self) -> SmallVec<[<Self::PublicKey as PublicKey>::Signature; 1]>
Iterate over document signatures.
Source§fn as_bytes(&self) -> BeefCow<'_, [u8]>
fn as_bytes(&self) -> BeefCow<'_, [u8]>
Get document as bytes for signature verification. Read more
Source§fn verify_one_signature(
&self,
public_key: &Self::PublicKey,
signature: &<Self::PublicKey as PublicKey>::Signature,
) -> Result<(), SigError>
fn verify_one_signature( &self, public_key: &Self::PublicKey, signature: &<Self::PublicKey as PublicKey>::Signature, ) -> Result<(), SigError>
Verify one signature
Source§fn verify_signatures(&self) -> Result<(), DocumentSigsErr>
fn verify_signatures(&self) -> Result<(), DocumentSigsErr>
Verify signatures of document content
Source§impl Hash for IdentityDocument
impl Hash for IdentityDocument
Source§impl PartialEq for IdentityDocument
impl PartialEq for IdentityDocument
Source§impl Serialize for IdentityDocument
impl Serialize for IdentityDocument
Source§impl ToStringObject for IdentityDocument
impl ToStringObject for IdentityDocument
Source§type StringObject = IdentityDocumentStringified
type StringObject = IdentityDocumentStringified
Generated string object
Source§fn to_string_object(&self) -> Self::StringObject
fn to_string_object(&self) -> Self::StringObject
Transforms object fields into string
impl Eq for IdentityDocument
impl StructuralPartialEq for IdentityDocument
Auto Trait Implementations§
impl Freeze for IdentityDocument
impl RefUnwindSafe for IdentityDocument
impl Send for IdentityDocument
impl Sync for IdentityDocument
impl Unpin for IdentityDocument
impl UnwindSafe for IdentityDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more