[−][src]Struct dubp_documents::documents::revocation::RevocationDocument
Wrap an Revocation document.
Must be created by parsing a text document or using a builder.
Methods
impl RevocationDocument
[src]
pub fn identity_username(&self) -> &str
[src]
Username of target identity
Trait Implementations
impl TextDocument for RevocationDocument
[src]
type CompactTextDocument_ = CompactRevocationDocument
Type of associated compact document.
fn as_text(&self) -> &str
[src]
fn to_compact_document(&self) -> Self::CompactTextDocument_
[src]
fn as_text_without_signature(&self) -> &str
[src]
Return document as text without signature.
fn generate_compact_text(&self) -> String
[src]
Generate document compact text. the compact format is the one used in the blocks. Read more
impl Document for RevocationDocument
[src]
type PublicKey = PubKey
Type of the PublicKey
used by the document.
type CurrencyType = str
Data type of the currency code used by the document.
fn version(&self) -> u16
[src]
fn currency(&self) -> &str
[src]
fn blockstamp(&self) -> Blockstamp
[src]
fn issuers(&self) -> &Vec<PubKey>
[src]
fn signatures(&self) -> &Vec<Sig>
[src]
fn as_bytes(&self) -> &[u8]
[src]
fn verify_signatures(&self) -> VerificationResult
[src]
Verify signatures of document content (as text format)
impl IntoSpecializedDocument<DUBPDocument> for RevocationDocument
[src]
fn into_specialized(self) -> DUBPDocument
[src]
impl ToStringObject for RevocationDocument
[src]
type StringObject = RevocationStringDocument
fn to_string_object(&self) -> RevocationStringDocument
[src]
Transforms an object into a json object
impl Eq for RevocationDocument
[src]
impl Clone for RevocationDocument
[src]
fn clone(&self) -> RevocationDocument
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<RevocationDocument> for RevocationDocument
[src]
fn eq(&self, other: &RevocationDocument) -> bool
[src]
fn ne(&self, other: &RevocationDocument) -> bool
[src]
impl Debug for RevocationDocument
[src]
impl Serialize for RevocationDocument
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for RevocationDocument
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for RevocationDocument
impl Sync for RevocationDocument
Blanket Implementations
impl<T> ToJsonObject for T where
T: ToStringObject,
[src]
T: ToStringObject,
fn to_json_string(&self) -> Result<String, Error>
[src]
Convert to JSON String
fn to_json_string_pretty(&self) -> Result<String, Error>
[src]
Convert to JSON String pretty
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,