pub struct DDEXParser { /* private fields */ }
Expand description
Main DDEX Parser
Implementations§
Source§impl DDEXParser
impl DDEXParser
Sourcepub fn with_config(config: SecurityConfig) -> Self
pub fn with_config(config: SecurityConfig) -> Self
Create parser with custom security configuration
Sourcepub fn parse<R: BufRead + Seek>(
&self,
reader: R,
) -> Result<ParsedERNMessage, ParseError>
pub fn parse<R: BufRead + Seek>( &self, reader: R, ) -> Result<ParsedERNMessage, ParseError>
Parse DDEX XML from a reader
Sourcepub fn parse_with_options<R: BufRead + Seek>(
&self,
reader: R,
options: ParseOptions,
) -> Result<ParsedERNMessage, ParseError>
pub fn parse_with_options<R: BufRead + Seek>( &self, reader: R, options: ParseOptions, ) -> Result<ParsedERNMessage, ParseError>
Parse with options
Sourcepub fn stream<R: BufRead>(&self, reader: R) -> StreamIterator<R> ⓘ
pub fn stream<R: BufRead>(&self, reader: R) -> StreamIterator<R> ⓘ
Stream parse for large files
Sourcepub fn detect_version<R: BufRead>(
&self,
reader: R,
) -> Result<ERNVersion, ParseError>
pub fn detect_version<R: BufRead>( &self, reader: R, ) -> Result<ERNVersion, ParseError>
Detect DDEX version from XML
Sourcepub fn sanity_check<R: BufRead>(
&self,
_reader: R,
) -> Result<SanityCheckResult, ParseError>
pub fn sanity_check<R: BufRead>( &self, _reader: R, ) -> Result<SanityCheckResult, ParseError>
Perform sanity check on DDEX XML
Trait Implementations§
Source§impl Clone for DDEXParser
impl Clone for DDEXParser
Source§fn clone(&self) -> DDEXParser
fn clone(&self) -> DDEXParser
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 DDEXParser
impl Debug for DDEXParser
Auto Trait Implementations§
impl Freeze for DDEXParser
impl RefUnwindSafe for DDEXParser
impl Send for DDEXParser
impl Sync for DDEXParser
impl Unpin for DDEXParser
impl UnwindSafe for DDEXParser
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