#[non_exhaustive]pub struct StructFieldValue {
pub name: String,
pub value: Option<Box<FeatureValue>>,
/* private fields */
}Available on crate features
feature-online-store-service or featurestore-online-serving-service only.Expand description
One field of a Struct (or object) type feature value.
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.name: StringName of the field in the struct feature.
value: Option<Box<FeatureValue>>The value for this field.
Implementations§
Source§impl StructFieldValue
impl StructFieldValue
pub fn new() -> Self
Sourcepub fn set_value<T>(self, v: T) -> Selfwhere
T: Into<FeatureValue>,
pub fn set_value<T>(self, v: T) -> Selfwhere
T: Into<FeatureValue>,
Sourcepub fn set_or_clear_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureValue>,
pub fn set_or_clear_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureValue>,
Trait Implementations§
Source§impl Clone for StructFieldValue
impl Clone for StructFieldValue
Source§fn clone(&self) -> StructFieldValue
fn clone(&self) -> StructFieldValue
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 StructFieldValue
impl Debug for StructFieldValue
Source§impl Default for StructFieldValue
impl Default for StructFieldValue
Source§fn default() -> StructFieldValue
fn default() -> StructFieldValue
Returns the “default value” for a type. Read more
Source§impl Message for StructFieldValue
impl Message for StructFieldValue
Source§impl PartialEq for StructFieldValue
impl PartialEq for StructFieldValue
impl StructuralPartialEq for StructFieldValue
Auto Trait Implementations§
impl Freeze for StructFieldValue
impl RefUnwindSafe for StructFieldValue
impl Send for StructFieldValue
impl Sync for StructFieldValue
impl Unpin for StructFieldValue
impl UnwindSafe for StructFieldValue
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