Enum mcai_models::StartParameterType
source · [−]pub enum StartParameterType {
File {
default: Option<String>,
value: Option<String>,
},
Choice {
default: Option<String>,
value: Option<String>,
items: Vec<ListItem>,
},
String {
default: Option<String>,
value: Option<String>,
},
Number {
default: Option<f64>,
value: Option<f64>,
},
}
Variants
File
Choice
String
Number
Trait Implementations
sourceimpl Clone for StartParameterType
impl Clone for StartParameterType
sourcefn clone(&self) -> StartParameterType
fn clone(&self) -> StartParameterType
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 StartParameterType
impl Debug for StartParameterType
sourceimpl<'de> Deserialize<'de> for StartParameterType
impl<'de> Deserialize<'de> for StartParameterType
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 StartParameterType
impl JsonSchema for StartParameterType
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<StartParameterType> for StartParameterType
impl PartialEq<StartParameterType> for StartParameterType
sourcefn eq(&self, other: &StartParameterType) -> bool
fn eq(&self, other: &StartParameterType) -> bool
sourceimpl Serialize for StartParameterType
impl Serialize for StartParameterType
impl StructuralPartialEq for StartParameterType
Auto Trait Implementations
impl RefUnwindSafe for StartParameterType
impl Send for StartParameterType
impl Sync for StartParameterType
impl Unpin for StartParameterType
impl UnwindSafe for StartParameterType
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