pub struct LibraryDocument {
pub etdl: String,
pub library: LibraryInfo,
pub components: Components,
}Expand description
An ETDL library document: a reusable component catalog (the standard
library, a domain library, or a user library), as opposed to an
EtlDocument (a system: event trees, fault trees, an actual model).
A library has no event trees or fault trees of its own — it only
provides named, reusable components that an importing EtlDocument
can reference. It is parsed with the same YAML conventions and the exact
same Components/BasicEvent/Gate types as an ordinary document
(see etdl_parser::parse_library_document), just under a lighter
top-level schema that does not require an event tree to be present.
Fields§
§etdl: StringThe ETDL language-version dialect this library’s syntax targets.
Checked the same way as EtlDocument::etdl.
library: LibraryInfo§components: ComponentsTrait Implementations§
Source§impl Clone for LibraryDocument
impl Clone for LibraryDocument
Source§fn clone(&self) -> LibraryDocument
fn clone(&self) -> LibraryDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LibraryDocument
impl Debug for LibraryDocument
Source§impl<'de> Deserialize<'de> for LibraryDocument
impl<'de> Deserialize<'de> for LibraryDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LibraryDocument
impl RefUnwindSafe for LibraryDocument
impl Send for LibraryDocument
impl Sync for LibraryDocument
impl Unpin for LibraryDocument
impl UnsafeUnpin for LibraryDocument
impl UnwindSafe for LibraryDocument
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