Struct biodivine_sketchbook::sketchbook::data_structs::ModelData
source · pub struct ModelData {
pub variables: Vec<VariableData>,
pub regulations: Vec<RegulationData>,
pub uninterpreted_fns: Vec<UninterpretedFnData>,
pub layouts: Vec<LayoutData>,
}
Expand description
Structure for sending/exporting all necessary data about the model part of the sketch.
Fields§
§variables: Vec<VariableData>
§regulations: Vec<RegulationData>
§uninterpreted_fns: Vec<UninterpretedFnData>
§layouts: Vec<LayoutData>
Implementations§
source§impl ModelData
impl ModelData
sourcepub fn from_model(model: &ModelState) -> ModelData
pub fn from_model(model: &ModelState) -> ModelData
Create new SketchData
instance given a reference to a model manager instance.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ModelData
impl<'de> Deserialize<'de> for ModelData
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
source§impl<'de> JsonSerde<'de> for ModelData
impl<'de> JsonSerde<'de> for ModelData
source§fn to_json_str(&self) -> String
fn to_json_str(&self) -> String
Wrapper for json serialization.
source§fn to_pretty_json_str(&self) -> String
fn to_pretty_json_str(&self) -> String
Wrapper for pretty json serialization with indentation.
impl StructuralPartialEq for ModelData
Auto Trait Implementations§
impl Freeze for ModelData
impl RefUnwindSafe for ModelData
impl Send for ModelData
impl Sync for ModelData
impl Unpin for ModelData
impl UnwindSafe for ModelData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)