[−][src]Enum dubp_documents::documents::UserDocumentDUBP
User document of DUBP (DUniter Blockhain Protocol)
Variants
Transaction(Box<TransactionDocument>)Transaction document.
Identity(IdentityDocument)Identity document.
Membership(MembershipDocument)Membership document.
Certification(Box<CertificationDocument>)Certification document.
Revocation(Box<RevocationDocument>)Revocation document.
Methods
impl UserDocumentDUBP[src]
pub fn from_pest_pair_v10(
pair: Pair<Rule>
) -> Result<UserDocumentDUBP, TextDocumentParseError>[src]
pair: Pair<Rule>
) -> Result<UserDocumentDUBP, TextDocumentParseError>
Trait Implementations
impl TextDocumentParser<Rule> for UserDocumentDUBP[src]
type DocumentType = UserDocumentDUBP
Type of document generated by the parser
fn parse(doc: &str) -> Result<UserDocumentDUBP, TextDocumentParseError>[src]
fn from_pest_pair(
pair: Pair<Rule>
) -> Result<Self::DocumentType, TextDocumentParseError>[src]
pair: Pair<Rule>
) -> Result<Self::DocumentType, TextDocumentParseError>
fn from_versioned_pest_pair(
version: u16,
pair: Pair<Rule>
) -> Result<Self::DocumentType, TextDocumentParseError>[src]
version: u16,
pair: Pair<Rule>
) -> Result<Self::DocumentType, TextDocumentParseError>
impl ToStringObject for UserDocumentDUBP[src]
type StringObject = UserDocumentDUBPStr
fn to_string_object(&self) -> Self::StringObject[src]
impl Clone for UserDocumentDUBP[src]
fn clone(&self) -> UserDocumentDUBP[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for UserDocumentDUBP[src]
impl<'de> Deserialize<'de> for UserDocumentDUBP[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for UserDocumentDUBP[src]
Auto Trait Implementations
impl Sync for UserDocumentDUBP
impl Send for UserDocumentDUBP
impl Unpin for UserDocumentDUBP
impl RefUnwindSafe for UserDocumentDUBP
impl UnwindSafe for UserDocumentDUBP
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,