pub struct Constraint {
pub name: String,
pub package: Option<String>,
pub description: Option<String>,
pub group: Option<String>,
pub components: Vec<StreamComponent>,
pub indictment: Option<WasmFunction>,
pub justification: Option<WasmFunction>,
}Fields§
§name: String§package: Option<String>§description: Option<String>§group: Option<String>§components: Vec<StreamComponent>§indictment: Option<WasmFunction>§justification: Option<WasmFunction>Implementations§
Source§impl Constraint
impl Constraint
pub fn new(name: impl Into<String>) -> Self
pub fn with_package(self, package: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_group(self, group: impl Into<String>) -> Self
pub fn with_component(self, component: StreamComponent) -> Self
pub fn with_components(self, components: Vec<StreamComponent>) -> Self
pub fn with_indictment(self, indictment: WasmFunction) -> Self
pub fn with_justification(self, justification: WasmFunction) -> Self
pub fn full_name(&self) -> String
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a duplicate 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 Constraint
impl Debug for Constraint
Source§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
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 FromIterator<Constraint> for ConstraintSet
impl FromIterator<Constraint> for ConstraintSet
Source§fn from_iter<I: IntoIterator<Item = Constraint>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Constraint>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
Source§impl Serialize for Constraint
impl Serialize for Constraint
impl Eq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.