Struct biodivine_sketchbook::sketchbook::data_structs::SketchData
source · pub struct SketchData {
pub model: ModelData,
pub datasets: Vec<DatasetData>,
pub dyn_properties: Vec<DynPropertyData>,
pub stat_properties: Vec<StatPropertyData>,
pub annotation: String,
}
Expand description
Structure for sending/exporting data about the whole Sketch.
Fields§
§model: ModelData
§datasets: Vec<DatasetData>
§dyn_properties: Vec<DynPropertyData>
§stat_properties: Vec<StatPropertyData>
§annotation: String
Implementations§
source§impl SketchData
impl SketchData
sourcepub fn new(
model: &ModelState,
observations: &ObservationManager,
properties: &PropertyManager,
annotation: &str,
) -> SketchData
pub fn new( model: &ModelState, observations: &ObservationManager, properties: &PropertyManager, annotation: &str, ) -> SketchData
Create new SketchData
instance given a reference to all necessary manager classes.
sourcepub fn new_from_sketch(sketch: &Sketch) -> SketchData
pub fn new_from_sketch(sketch: &Sketch) -> SketchData
Create new SketchData
instance given a reference to the Sketch
instance.
Trait Implementations§
source§impl Clone for SketchData
impl Clone for SketchData
source§fn clone(&self) -> SketchData
fn clone(&self) -> SketchData
Returns a copy of the value. Read more
1.0.0 · 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 SketchData
impl Debug for SketchData
source§impl<'de> Deserialize<'de> for SketchData
impl<'de> Deserialize<'de> for SketchData
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 SketchData
impl<'de> JsonSerde<'de> for SketchData
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.
source§impl PartialEq for SketchData
impl PartialEq for SketchData
source§impl Serialize for SketchData
impl Serialize for SketchData
impl StructuralPartialEq for SketchData
Auto Trait Implementations§
impl Freeze for SketchData
impl RefUnwindSafe for SketchData
impl Send for SketchData
impl Sync for SketchData
impl Unpin for SketchData
impl UnwindSafe for SketchData
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
)