pub struct Deck {
pub schema_version: u32,
pub case: CaseBlock,
pub reactor: ReactorBlock,
pub feed: FeedBlock,
pub kinetics: KineticsBlock,
pub sweep: Option<SweepBlock>,
}Expand description
A complete DOVER input deck.
Fields§
§schema_version: u32Must equal SCHEMA_VERSION.
case: CaseBlockCase identification.
reactor: ReactorBlockReactor geometry and operating point.
feed: FeedBlockInlet specification.
kinetics: KineticsBlockThe fitted forward rates.
sweep: Option<SweepBlock>Optional single-variable sweep. Absent means one operating point.
Implementations§
Source§impl Deck
impl Deck
Sourcepub fn from_toml(text: &str) -> Result<Self, DeckError>
pub fn from_toml(text: &str) -> Result<Self, DeckError>
Parse and validate a deck from TOML text.
§Errors
DeckError::Parse if the TOML is malformed or names an unknown key;
DeckError::Invalid if it parses but fails Deck::validate.
Sourcepub fn to_toml(&self) -> Result<String, DeckError>
pub fn to_toml(&self) -> Result<String, DeckError>
Serialise back to TOML.
§Errors
DeckError::Parse if serialisation fails, which in practice it does
not for this schema.
Sourcepub fn validate(&self) -> Result<(), DeckError>
pub fn validate(&self) -> Result<(), DeckError>
Check the deck describes a physically meaningful, supported run.
§Errors
DeckError::Invalid naming the first problem found.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deck
impl<'de> Deserialize<'de> for Deck
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
impl StructuralPartialEq for Deck
Auto Trait Implementations§
impl Freeze for Deck
impl RefUnwindSafe for Deck
impl Send for Deck
impl Sync for Deck
impl Unpin for Deck
impl UnsafeUnpin for Deck
impl UnwindSafe for Deck
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