#[non_exhaustive]pub enum PayloadValue {
String(String),
Integer(i64),
Float(f64),
Bool(bool),
}Expand description
Typed scalar payload value stored alongside vector points.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
UTF-8 string value.
Integer(i64)
Signed integer value.
Float(f64)
Floating-point value.
Values are validated as finite by store/adaptor request validation before they are accepted for storage or filtering.
Bool(bool)
Boolean value.
Implementations§
Trait Implementations§
Source§impl Clone for PayloadValue
impl Clone for PayloadValue
Source§fn clone(&self) -> PayloadValue
fn clone(&self) -> PayloadValue
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 moreSource§impl Debug for PayloadValue
impl Debug for PayloadValue
Source§impl<'de> Deserialize<'de> for PayloadValue
impl<'de> Deserialize<'de> for PayloadValue
Source§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
Source§impl From<&str> for PayloadValue
impl From<&str> for PayloadValue
Source§impl From<String> for PayloadValue
impl From<String> for PayloadValue
Source§impl From<bool> for PayloadValue
impl From<bool> for PayloadValue
Source§impl From<f32> for PayloadValue
impl From<f32> for PayloadValue
Source§impl From<f64> for PayloadValue
impl From<f64> for PayloadValue
Source§impl From<i32> for PayloadValue
impl From<i32> for PayloadValue
Source§impl From<i64> for PayloadValue
impl From<i64> for PayloadValue
Source§impl From<u32> for PayloadValue
impl From<u32> for PayloadValue
Source§impl PartialEq for PayloadValue
impl PartialEq for PayloadValue
Source§fn eq(&self, other: &PayloadValue) -> bool
fn eq(&self, other: &PayloadValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PayloadValue
impl Serialize for PayloadValue
impl StructuralPartialEq for PayloadValue
Auto Trait Implementations§
impl Freeze for PayloadValue
impl RefUnwindSafe for PayloadValue
impl Send for PayloadValue
impl Sync for PayloadValue
impl Unpin for PayloadValue
impl UnsafeUnpin for PayloadValue
impl UnwindSafe for PayloadValue
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