pub struct OperatorContractV1 {Show 14 fields
pub operator_id: String,
pub owner_plane: String,
pub input_families: Vec<String>,
pub output_families: Vec<String>,
pub allowed_effects: BTreeSet<OperatorEffectV1>,
pub forbidden_effects: BTreeSet<OperatorEffectV1>,
pub preconditions: Vec<String>,
pub postconditions: Vec<String>,
pub proof_obligations: Vec<String>,
pub boundary_profile: String,
pub replay_requirements: Vec<String>,
pub failure_taxonomy: Vec<String>,
pub human_approval: String,
pub reason_codes: Vec<String>,
}Fields§
§operator_id: String§owner_plane: String§input_families: Vec<String>§output_families: Vec<String>§allowed_effects: BTreeSet<OperatorEffectV1>§forbidden_effects: BTreeSet<OperatorEffectV1>§preconditions: Vec<String>§postconditions: Vec<String>§proof_obligations: Vec<String>§boundary_profile: String§replay_requirements: Vec<String>§failure_taxonomy: Vec<String>§human_approval: String§reason_codes: Vec<String>Implementations§
Source§impl OperatorContractV1
impl OperatorContractV1
pub fn new( operator_id: impl Into<String>, owner_plane: impl Into<String>, input_families: Vec<&str>, output_families: Vec<&str>, allowed_effects: BTreeSet<OperatorEffectV1>, forbidden_effects: BTreeSet<OperatorEffectV1>, human_approval: impl Into<String>, ) -> Self
pub fn permits_effects(&self, effects: &BTreeSet<OperatorEffectV1>) -> bool
pub fn failure_taxonomy_is_finite(&self) -> bool
Trait Implementations§
Source§impl Clone for OperatorContractV1
impl Clone for OperatorContractV1
Source§fn clone(&self) -> OperatorContractV1
fn clone(&self) -> OperatorContractV1
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 OperatorContractV1
impl Debug for OperatorContractV1
Source§impl<'de> Deserialize<'de> for OperatorContractV1
impl<'de> Deserialize<'de> for OperatorContractV1
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 Eq for OperatorContractV1
Source§impl JsonSchema for OperatorContractV1
impl JsonSchema for OperatorContractV1
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 OperatorContractV1
impl PartialEq for OperatorContractV1
Source§fn eq(&self, other: &OperatorContractV1) -> bool
fn eq(&self, other: &OperatorContractV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OperatorContractV1
impl Serialize for OperatorContractV1
impl StructuralPartialEq for OperatorContractV1
Auto Trait Implementations§
impl Freeze for OperatorContractV1
impl RefUnwindSafe for OperatorContractV1
impl Send for OperatorContractV1
impl Sync for OperatorContractV1
impl Unpin for OperatorContractV1
impl UnsafeUnpin for OperatorContractV1
impl UnwindSafe for OperatorContractV1
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