Enum CatChoiceValue
pub enum CatChoiceValue {
Bool(bool),
I64(i64),
F64(f64),
String(String),
}Expand description
One categorical choice’s durable scalar payload.
Labels remain the stable schema identity, while this payload preserves the
scalar type a language binding must reconstruct. Floating-point values are
accepted by CatChoices::from_typed only when finite.
Variants§
Bool(bool)
A Python/Rust boolean.
I64(i64)
A signed 64-bit integer.
F64(f64)
A finite 64-bit floating-point value.
String(String)
A string, including strings that look numeric or boolean.
Implementations§
§impl CatChoiceValue
impl CatChoiceValue
Trait Implementations§
§impl Clone for CatChoiceValue
impl Clone for CatChoiceValue
§fn clone(&self) -> CatChoiceValue
fn clone(&self) -> CatChoiceValue
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 more§impl Debug for CatChoiceValue
impl Debug for CatChoiceValue
§impl<'de> Deserialize<'de> for CatChoiceValue
impl<'de> Deserialize<'de> for CatChoiceValue
§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
impl Eq for CatChoiceValue
§impl Hash for CatChoiceValue
impl Hash for CatChoiceValue
§impl PartialEq for CatChoiceValue
impl PartialEq for CatChoiceValue
§impl Serialize for CatChoiceValue
impl Serialize for CatChoiceValue
Auto Trait Implementations§
impl Freeze for CatChoiceValue
impl RefUnwindSafe for CatChoiceValue
impl Send for CatChoiceValue
impl Sync for CatChoiceValue
impl Unpin for CatChoiceValue
impl UnsafeUnpin for CatChoiceValue
impl UnwindSafe for CatChoiceValue
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