pub struct EventFactUpdate {
pub value: Value,
pub extra: Map<String, Value>,
}Expand description
Replaces the value of an event fact, or creates it if none is stored yet. The same validation applies to creation and replacement.
Fields§
§value: ValueFor numeric facts, prefer a JSON number. For select facts, send the configured option text from /facts/{id}.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for EventFactUpdate
impl Clone for EventFactUpdate
Source§impl Debug for EventFactUpdate
impl Debug for EventFactUpdate
Source§impl Default for EventFactUpdate
impl Default for EventFactUpdate
Source§impl<'de> Deserialize<'de> for EventFactUpdate
impl<'de> Deserialize<'de> for EventFactUpdate
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 PartialEq for EventFactUpdate
impl PartialEq for EventFactUpdate
Source§impl Serialize for EventFactUpdate
impl Serialize for EventFactUpdate
impl StructuralPartialEq for EventFactUpdate
Auto Trait Implementations§
impl Freeze for EventFactUpdate
impl RefUnwindSafe for EventFactUpdate
impl Send for EventFactUpdate
impl Sync for EventFactUpdate
impl Unpin for EventFactUpdate
impl UnsafeUnpin for EventFactUpdate
impl UnwindSafe for EventFactUpdate
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