pub struct RevocationDocumentV10 { /* private fields */ }Expand description
Wrap an Revocation document.
Must be created by parsing a text document or using a builder.
Implementations§
Source§impl RevocationDocumentV10
impl RevocationDocumentV10
Sourcepub fn identity_username(&self) -> &str
pub fn identity_username(&self) -> &str
Username of target identity
Trait Implementations§
Source§impl Clone for RevocationDocumentV10
impl Clone for RevocationDocumentV10
Source§fn clone(&self) -> RevocationDocumentV10
fn clone(&self) -> RevocationDocumentV10
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 RevocationDocumentV10
impl Debug for RevocationDocumentV10
Source§impl<'de> Deserialize<'de> for RevocationDocumentV10
impl<'de> Deserialize<'de> for RevocationDocumentV10
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 RevocationDocumentV10
impl Document for RevocationDocumentV10
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 PartialEq for RevocationDocumentV10
impl PartialEq for RevocationDocumentV10
Source§impl Serialize for RevocationDocumentV10
impl Serialize for RevocationDocumentV10
Source§impl TextDocument for RevocationDocumentV10
impl TextDocument for RevocationDocumentV10
Source§type CompactTextDocument_ = CompactRevocationDocumentV10
type CompactTextDocument_ = CompactRevocationDocumentV10
Type of associated compact document.
Source§fn to_compact_document(&self) -> Cow<'_, Self::CompactTextDocument_>
fn to_compact_document(&self) -> Cow<'_, Self::CompactTextDocument_>
Generate compact document.
the compact format is the one used in the blocks. Read more
Source§fn as_text_with_signatures(&self) -> String
fn as_text_with_signatures(&self) -> String
Return document as text with leading signatures.
Source§fn generate_compact_text(&self) -> String
fn generate_compact_text(&self) -> String
Generate document compact text.
the compact format is the one used in the blocks. Read more
Source§impl ToStringObject for RevocationDocumentV10
impl ToStringObject for RevocationDocumentV10
Source§fn to_string_object(&self) -> RevocationDocumentV10Stringified
fn to_string_object(&self) -> RevocationDocumentV10Stringified
Transforms an object into a json object
Source§type StringObject = RevocationDocumentV10Stringified
type StringObject = RevocationDocumentV10Stringified
Generated string object
impl Eq for RevocationDocumentV10
impl StructuralPartialEq for RevocationDocumentV10
Auto Trait Implementations§
impl Freeze for RevocationDocumentV10
impl RefUnwindSafe for RevocationDocumentV10
impl Send for RevocationDocumentV10
impl Sync for RevocationDocumentV10
impl Unpin for RevocationDocumentV10
impl UnwindSafe for RevocationDocumentV10
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