pub struct DiffOptions {
pub profiles: ProfileMask,
pub header: Option<ModelHeader>,
}Expand description
Options controlling how a difference is computed.
Fields§
§profiles: ProfileMaskCompare only values belonging to these profiles; zero means “everything”.
Filtering follows the same rule as the CIM/XML writer
(Schema::effective_profiles), so a change set restricted to Steady State
Hypothesis contains exactly the values an SSH export would, and no equipment
changes that belong in a different file.
header: Option<ModelHeader>Header to give the change set. Without one, a minimal dm:DifferenceModel header
is derived from the target’s own headers.
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn profiles(self, profiles: ProfileMask) -> Self
pub fn profiles(self, profiles: ProfileMask) -> Self
Restrict the comparison to a set of profiles.
pub fn with_header(self, header: ModelHeader) -> Self
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§impl Debug for DiffOptions
impl Debug for DiffOptions
Auto Trait Implementations§
impl Forget for DiffOptions
impl Freeze for DiffOptions
impl Move for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
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