#[non_exhaustive]pub struct ElementUpdate {
pub element: ElementRef,
pub fields: BTreeMap<String, Value>,
pub metadata: BTreeMap<String, Value>,
}Expand description
Field values to apply to one static payload row.
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.element: ElementRefTable row to update.
fields: BTreeMap<String, Value>JSON field values to overwrite on that row.
metadata: BTreeMap<String, Value>Metadata from the source format for this update.
Implementations§
Source§impl ElementUpdate
impl ElementUpdate
Trait Implementations§
Source§impl Clone for ElementUpdate
impl Clone for ElementUpdate
Source§fn clone(&self) -> ElementUpdate
fn clone(&self) -> ElementUpdate
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 ElementUpdate
impl Debug for ElementUpdate
Source§impl<'de> Deserialize<'de> for ElementUpdate
impl<'de> Deserialize<'de> for ElementUpdate
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 ElementUpdate
impl PartialEq for ElementUpdate
Source§impl Serialize for ElementUpdate
impl Serialize for ElementUpdate
impl StructuralPartialEq for ElementUpdate
Auto Trait Implementations§
impl Freeze for ElementUpdate
impl RefUnwindSafe for ElementUpdate
impl Send for ElementUpdate
impl Sync for ElementUpdate
impl Unpin for ElementUpdate
impl UnsafeUnpin for ElementUpdate
impl UnwindSafe for ElementUpdate
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