#[non_exhaustive]pub struct ModelFeature {
pub feature: String,
pub release_state: String,
/* private fields */
}Expand description
Represents a singular feature of a model. If the feature is recognizer,
the release_state of the feature represents the release_state of the model
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.feature: StringThe name of the feature (Note: the feature can be recognizer)
release_state: StringThe release state of the feature
Implementations§
Source§impl ModelFeature
impl ModelFeature
pub fn new() -> Self
Sourcepub fn set_feature<T: Into<String>>(self, v: T) -> Self
pub fn set_feature<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_release_state<T: Into<String>>(self, v: T) -> Self
pub fn set_release_state<T: Into<String>>(self, v: T) -> Self
Sets the value of release_state.
§Example
ⓘ
let x = ModelFeature::new().set_release_state("example");Trait Implementations§
Source§impl Clone for ModelFeature
impl Clone for ModelFeature
Source§fn clone(&self) -> ModelFeature
fn clone(&self) -> ModelFeature
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 ModelFeature
impl Debug for ModelFeature
Source§impl Default for ModelFeature
impl Default for ModelFeature
Source§fn default() -> ModelFeature
fn default() -> ModelFeature
Returns the “default value” for a type. Read more
Source§impl Message for ModelFeature
impl Message for ModelFeature
Source§impl PartialEq for ModelFeature
impl PartialEq for ModelFeature
impl StructuralPartialEq for ModelFeature
Auto Trait Implementations§
impl Freeze for ModelFeature
impl RefUnwindSafe for ModelFeature
impl Send for ModelFeature
impl Sync for ModelFeature
impl Unpin for ModelFeature
impl UnwindSafe for ModelFeature
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