pub struct WireObject {
pub operation_type: OperationType,
pub entity_type: Option<EntityType>,
pub payload: Properties,
}Expand description
A single wire object entry keyed by UUID.
Fields§
§operation_type: OperationType§entity_type: Option<EntityType>§payload: PropertiesImplementations§
Source§impl WireObject
impl WireObject
pub fn properties(&self) -> Result<Properties, Error>
pub fn properties_map(&self) -> BTreeMap<String, Value>
pub fn create(entity_type: EntityType, payload: impl Into<Properties>) -> Self
pub fn update(entity_type: EntityType, payload: impl Into<Properties>) -> Self
pub fn delete(entity_type: EntityType) -> Self
Trait Implementations§
Source§impl Clone for WireObject
impl Clone for WireObject
Source§fn clone(&self) -> WireObject
fn clone(&self) -> WireObject
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 WireObject
impl Debug for WireObject
Source§impl<'de> Deserialize<'de> for WireObject
impl<'de> Deserialize<'de> for WireObject
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WireObject
impl PartialEq for WireObject
Source§impl Serialize for WireObject
impl Serialize for WireObject
impl StructuralPartialEq for WireObject
Auto Trait Implementations§
impl Freeze for WireObject
impl RefUnwindSafe for WireObject
impl Send for WireObject
impl Sync for WireObject
impl Unpin for WireObject
impl UnsafeUnpin for WireObject
impl UnwindSafe for WireObject
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