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 CIM/XML writer (Schema::effective_profiles), so a change
set restricted to SSH holds exactly the values an SSH export would.
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 DiffOptionswhere
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Mrid>: Freeze,
PhantomData<HeaderProperty>: Freeze,
impl Move for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptionswhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Mrid>: UnsafeUnpin,
PhantomData<HeaderProperty>: UnsafeUnpin,
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