pub struct DataDiff { /* private fields */ }
Expand description
YANG data tree diff.
Implementations§
source§impl DataDiff
impl DataDiff
sourcepub fn parse_string(
context: &Arc<Context>,
data: &str,
format: DataFormat,
parser_options: DataParserFlags,
validation_options: DataValidationFlags
) -> Result<DataDiff, Error>
pub fn parse_string( context: &Arc<Context>, data: &str, format: DataFormat, parser_options: DataParserFlags, validation_options: DataValidationFlags ) -> Result<DataDiff, Error>
Parse (and validate) input data as a YANG data diff.
sourcepub fn iter(&self) -> impl Iterator<Item = (DataDiffOp, DataNodeRef<'_>)>
pub fn iter(&self) -> impl Iterator<Item = (DataDiffOp, DataNodeRef<'_>)>
Returns an iterator over the data changes.
Trait Implementations§
source§impl Data for DataDiff
impl Data for DataDiff
source§fn find_xpath(&self, xpath: &str) -> Result<Set<'_, DataNodeRef<'_>>, Error>
fn find_xpath(&self, xpath: &str) -> Result<Set<'_, DataNodeRef<'_>>, Error>
Search in the given data for instances of nodes matching the provided
XPath. Read more
source§fn find_path(&self, path: &str) -> Result<DataNodeRef<'_>, Error>
fn find_path(&self, path: &str) -> Result<DataNodeRef<'_>, Error>
Search in the given data for a single node matching the provided XPath. Read more
source§fn print_file<F: AsRawFd>(
&self,
fd: F,
format: DataFormat,
options: DataPrinterFlags
) -> Result<(), Error>
fn print_file<F: AsRawFd>( &self, fd: F, format: DataFormat, options: DataPrinterFlags ) -> Result<(), Error>
Print data tree in the specified format.
source§fn print_string(
&self,
format: DataFormat,
options: DataPrinterFlags
) -> Result<Option<String>, Error>
fn print_string( &self, format: DataFormat, options: DataPrinterFlags ) -> Result<Option<String>, Error>
Print data tree in the specified format.
Auto Trait Implementations§
impl Freeze for DataDiff
impl RefUnwindSafe for DataDiff
impl Send for DataDiff
impl Sync for DataDiff
impl Unpin for DataDiff
impl UnwindSafe for DataDiff
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