pub struct Combination {
pub combination_id: String,
pub action_id: String,
pub about: Option<String>,
pub fixed: BTreeMap<String, FixedValue>,
pub required: Vec<String>,
pub optional: Vec<String>,
pub output: OutputSpec,
}Expand description
One named legal application invocation shape.
Fields§
§combination_id: String§action_id: String§about: Option<String>§fixed: BTreeMap<String, FixedValue>§required: Vec<String>§optional: Vec<String>§output: OutputSpecImplementations§
Source§impl Combination
impl Combination
pub fn new(combination_id: impl Into<String>) -> Self
pub fn action(self, action_id: impl Into<String>) -> Self
pub fn about(self, about: impl Into<String>) -> Self
pub fn fixed( self, argument_id: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn fixed_one_of<I, S>( self, argument_id: impl Into<String>, values: I, ) -> Self
pub fn required<I, S>(self, argument_ids: I) -> Self
pub fn optional<I, S>(self, argument_ids: I) -> Self
pub fn output(self, output: OutputSpec) -> Self
Trait Implementations§
Source§impl Clone for Combination
impl Clone for Combination
Source§fn clone(&self) -> Combination
fn clone(&self) -> Combination
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 Combination
impl Debug for Combination
Source§impl<'de> Deserialize<'de> for Combination
impl<'de> Deserialize<'de> for Combination
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 PartialEq for Combination
impl PartialEq for Combination
Source§impl Serialize for Combination
impl Serialize for Combination
impl StructuralPartialEq for Combination
Auto Trait Implementations§
impl Freeze for Combination
impl RefUnwindSafe for Combination
impl Send for Combination
impl Sync for Combination
impl Unpin for Combination
impl UnsafeUnpin for Combination
impl UnwindSafe for Combination
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