pub struct ComputedFieldValues {
pub fields: HashMap<String, Value>,
}Expand description
Collection of computed field values
Fields§
§fields: HashMap<String, Value>Implementations§
Source§impl ComputedFieldValues
impl ComputedFieldValues
pub fn new() -> Self
pub fn set(&mut self, name: impl Into<String>, value: Value)
pub fn get(&self, name: &str) -> Option<&Value>
pub fn get_bool(&self, name: &str) -> Option<bool>
pub fn get_str(&self, name: &str) -> Option<&str>
pub fn get_i64(&self, name: &str) -> Option<i64>
Trait Implementations§
Source§impl Clone for ComputedFieldValues
impl Clone for ComputedFieldValues
Source§impl Debug for ComputedFieldValues
impl Debug for ComputedFieldValues
Source§impl Default for ComputedFieldValues
impl Default for ComputedFieldValues
Source§impl<'de> Deserialize<'de> for ComputedFieldValues
impl<'de> Deserialize<'de> for ComputedFieldValues
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
Auto Trait Implementations§
impl Freeze for ComputedFieldValues
impl RefUnwindSafe for ComputedFieldValues
impl Send for ComputedFieldValues
impl Sync for ComputedFieldValues
impl Unpin for ComputedFieldValues
impl UnsafeUnpin for ComputedFieldValues
impl UnwindSafe for ComputedFieldValues
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.