pub enum HeaderSource {
Derive,
Given(Box<ModelHeader>),
Omit,
}Expand description
Where a document’s md:FullModel header comes from.
IEC 61970-552 gives every instance file a header declaring its profiles and dependencies, so deriving one is the default.
Variants§
Derive
Derive one from the dataset: identified by its content, declaring the profiles actually written.
Deterministic and clock-free: the identifier is an RFC 4122 v5 UUID over the model’s content.
Given(Box<ModelHeader>)
Write this header, which is how a model is written back as the file set it came from. An identifier is filled in from the model’s content if it has none.
Boxed: a ModelHeader is large and this enum sits in every WriteOptions.
Omit
Write no header. Not a conforming instance file.
Trait Implementations§
Source§impl Clone for HeaderSource
impl Clone for HeaderSource
Source§impl Debug for HeaderSource
impl Debug for HeaderSource
Auto Trait Implementations§
impl Forget for HeaderSource
impl Freeze for HeaderSource
impl Move for HeaderSource
impl RefUnwindSafe for HeaderSource
impl Send for HeaderSourcewhere
BoxRaw<ModelHeader>: Send,
impl Sync for HeaderSourcewhere
BoxRaw<ModelHeader>: Sync,
impl Unpin for HeaderSource
impl UnsafeUnpin for HeaderSource
impl UnwindSafe for HeaderSourcewhere
BoxRaw<ModelHeader>: UnwindSafe,
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