Enum mcai_models::ParameterType
source · [−]pub enum ParameterType {
ArrayOfMediaSegments {
default: Vec<MediaSegment>,
value: Vec<MediaSegment>,
required: bool,
},
ArrayOfStrings {
default: Vec<String>,
value: Vec<String>,
required: bool,
},
ArrayOfTemplates {
default: Vec<String>,
value: Vec<String>,
required: bool,
},
Boolean {
default: Option<bool>,
value: Option<bool>,
required: bool,
},
Extended {
default: Value,
value: Value,
required: bool,
},
Filter {
default: Option<Filter>,
value: Option<Filter>,
required: bool,
},
Integer {
default: Option<u32>,
value: Option<u32>,
required: bool,
},
Number {
default: Option<f64>,
value: Option<f64>,
required: bool,
},
Requirements {
default: Option<Requirement>,
value: Option<Requirement>,
required: bool,
},
SelectInput {
default: Option<SelectInput>,
value: Option<SelectInput>,
required: bool,
},
String {
default: Option<String>,
value: Option<String>,
required: bool,
},
Template {
default: Option<String>,
value: Option<String>,
required: bool,
},
}
Variants
ArrayOfMediaSegments
ArrayOfStrings
ArrayOfTemplates
Boolean
Extended
Filter
Integer
Number
Requirements
SelectInput
String
Template
Implementations
sourceimpl ParameterType
impl ParameterType
pub fn get_bool(&self) -> Option<bool>
pub fn get_string_array(&self) -> Option<Vec<String>>
pub fn get_integer(&self) -> Option<u32>
pub fn get_number(&self) -> Option<f64>
pub fn get_requirement(&self) -> Option<Requirement>
pub fn get_string(&self) -> Option<String>
Trait Implementations
sourceimpl Clone for ParameterType
impl Clone for ParameterType
sourcefn clone(&self) -> ParameterType
fn clone(&self) -> ParameterType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParameterType
impl Debug for ParameterType
sourceimpl<'de> Deserialize<'de> for ParameterType
impl<'de> Deserialize<'de> for ParameterType
sourcefn 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
sourceimpl JsonSchema for ParameterType
impl JsonSchema for ParameterType
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl PartialEq<ParameterType> for ParameterType
impl PartialEq<ParameterType> for ParameterType
sourcefn eq(&self, other: &ParameterType) -> bool
fn eq(&self, other: &ParameterType) -> bool
sourceimpl Serialize for ParameterType
impl Serialize for ParameterType
sourceimpl TryFrom<&Schema> for ParameterType
impl TryFrom<&Schema> for ParameterType
impl StructuralPartialEq for ParameterType
Auto Trait Implementations
impl RefUnwindSafe for ParameterType
impl Send for ParameterType
impl Sync for ParameterType
impl Unpin for ParameterType
impl UnwindSafe for ParameterType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more