pub struct MechanismReportDraftV1 {
pub mechanism_kind: MechanismKindV1,
pub name: String,
pub version_label: String,
pub variables: Vec<String>,
pub assumptions: Vec<String>,
pub causal_claims: Vec<String>,
pub mechanism_program: Vec<String>,
pub parameters: BTreeMap<String, Value>,
pub replay_recipe: String,
}Fields§
§mechanism_kind: MechanismKindV1§name: String§version_label: String§variables: Vec<String>§assumptions: Vec<String>§causal_claims: Vec<String>§mechanism_program: Vec<String>§parameters: BTreeMap<String, Value>§replay_recipe: StringImplementations§
Source§impl MechanismReportDraftV1
impl MechanismReportDraftV1
pub fn new( mechanism_kind: MechanismKindV1, name: impl Into<String>, version_label: impl Into<String>, replay_recipe: impl Into<String>, ) -> Self
pub fn with_variables(self, variables: Vec<String>) -> Self
pub fn with_assumptions(self, assumptions: Vec<String>) -> Self
pub fn with_causal_claims(self, causal_claims: Vec<String>) -> Self
pub fn with_program(self, mechanism_program: Vec<String>) -> Self
pub fn with_parameters(self, parameters: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for MechanismReportDraftV1
impl Clone for MechanismReportDraftV1
Source§fn clone(&self) -> MechanismReportDraftV1
fn clone(&self) -> MechanismReportDraftV1
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 MechanismReportDraftV1
impl Debug for MechanismReportDraftV1
Source§impl<'de> Deserialize<'de> for MechanismReportDraftV1
impl<'de> Deserialize<'de> for MechanismReportDraftV1
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 JsonSchema for MechanismReportDraftV1
impl JsonSchema for MechanismReportDraftV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MechanismReportDraftV1
impl PartialEq for MechanismReportDraftV1
Source§fn eq(&self, other: &MechanismReportDraftV1) -> bool
fn eq(&self, other: &MechanismReportDraftV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MechanismReportDraftV1
impl Serialize for MechanismReportDraftV1
impl StructuralPartialEq for MechanismReportDraftV1
Auto Trait Implementations§
impl Freeze for MechanismReportDraftV1
impl RefUnwindSafe for MechanismReportDraftV1
impl Send for MechanismReportDraftV1
impl Sync for MechanismReportDraftV1
impl Unpin for MechanismReportDraftV1
impl UnsafeUnpin for MechanismReportDraftV1
impl UnwindSafe for MechanismReportDraftV1
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