[−][src]Trait dubp_documents::TextDocumentParser
Associated Types
type DocumentType
Type of document generated by the parser
Required methods
fn parse(doc: &str) -> Result<Self::DocumentType, TextDocumentParseError>
Parse text document from raw format
fn from_pest_pair(
pairs: Pair<R>
) -> Result<Self::DocumentType, TextDocumentParseError>
pairs: Pair<R>
) -> Result<Self::DocumentType, TextDocumentParseError>
Parse text document from pest pairs
fn from_versioned_pest_pair(
version: u16,
pairs: Pair<R>
) -> Result<Self::DocumentType, TextDocumentParseError>
version: u16,
pairs: Pair<R>
) -> Result<Self::DocumentType, TextDocumentParseError>
Parse text document from versioned pest pairs
Implementors
impl TextDocumentParser<Rule> for UserDocumentDUBP[src]
type DocumentType = UserDocumentDUBP
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 TextDocumentParser<Rule> for CertificationDocumentParser[src]
type DocumentType = CertificationDocument
fn parse(doc: &str) -> Result<Self::DocumentType, TextDocumentParseError>[src]
fn from_pest_pair(
cert_pair: Pair<Rule>
) -> Result<Self::DocumentType, TextDocumentParseError>[src]
cert_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 TextDocumentParser<Rule> for IdentityDocumentParser[src]
type DocumentType = IdentityDocument
fn parse(doc: &str) -> Result<Self::DocumentType, 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 TextDocumentParser<Rule> for MembershipDocumentParser[src]
type DocumentType = MembershipDocument
fn parse(doc: &str) -> Result<Self::DocumentType, 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 TextDocumentParser<Rule> for RevocationDocumentParser[src]
type DocumentType = RevocationDocument
fn parse(doc: &str) -> Result<Self::DocumentType, 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 TextDocumentParser<Rule> for TransactionDocumentParser[src]
type DocumentType = TransactionDocument
fn parse(doc: &str) -> Result<Self::DocumentType, 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>