pub struct NotePropertyPatch {
pub preconditions: Vec<NotePropertyPrecondition>,
pub set: BTreeMap<String, Value>,
pub extend_expires_at: Option<i64>,
pub updated_at: i64,
}Expand description
A bounded, atomic partial update of a note’s properties and retention metadata.
Fields§
§preconditions: Vec<NotePropertyPrecondition>AND-combined predicates, at most 32. Keys are literal top-level keys.
set: BTreeMap<String, Value>Between 1 and 32 literal top-level writes, preserving each JSON value’s type. Keys in either collection must not contain U+0000.
extend_expires_at: Option<i64>Install or extend this expiry; None preserves the stored expiry.
updated_at: i64Applied as the maximum of the stored and supplied timestamps.
Trait Implementations§
Source§impl Clone for NotePropertyPatch
impl Clone for NotePropertyPatch
Auto Trait Implementations§
impl Freeze for NotePropertyPatch
impl RefUnwindSafe for NotePropertyPatch
impl Send for NotePropertyPatch
impl Sync for NotePropertyPatch
impl Unpin for NotePropertyPatch
impl UnsafeUnpin for NotePropertyPatch
impl UnwindSafe for NotePropertyPatch
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