pub struct MemoryPatch {
pub title: Option<String>,
pub body: Option<String>,
pub mem_type: Option<String>,
pub scope: Option<Scope>,
pub project: Option<String>,
pub topic_key: Option<String>,
pub anchors: Option<Vec<Anchor>>,
pub tags: Option<Vec<String>>,
}Expand description
Sparse update: only the fields the writer actually touched are Some.
Presence is the “touched” signal — untouched fields are None and skipped
on the wire. Enables field-level LWW merge (a whole-snapshot update cannot
distinguish “cleared” from “carried a stale copy”). topic_key cannot be
cleared via a patch (matches App::update); Some sets it, absent leaves it.
Fields§
§title: Option<String>§body: Option<String>§mem_type: Option<String>§scope: Option<Scope>§project: Option<String>§topic_key: Option<String>§anchors: Option<Vec<Anchor>>Trait Implementations§
Source§impl Clone for MemoryPatch
impl Clone for MemoryPatch
Source§fn clone(&self) -> MemoryPatch
fn clone(&self) -> MemoryPatch
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 MemoryPatch
impl Debug for MemoryPatch
Source§impl Default for MemoryPatch
impl Default for MemoryPatch
Source§fn default() -> MemoryPatch
fn default() -> MemoryPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryPatch
impl<'de> Deserialize<'de> for MemoryPatch
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 MemoryPatch
impl PartialEq for MemoryPatch
Source§impl Serialize for MemoryPatch
impl Serialize for MemoryPatch
impl StructuralPartialEq for MemoryPatch
Auto Trait Implementations§
impl Freeze for MemoryPatch
impl RefUnwindSafe for MemoryPatch
impl Send for MemoryPatch
impl Sync for MemoryPatch
impl Unpin for MemoryPatch
impl UnsafeUnpin for MemoryPatch
impl UnwindSafe for MemoryPatch
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