pub struct NotePatch {
pub name: Option<Option<String>>,
pub content: Option<String>,
pub salience: Option<Option<f64>>,
pub decay_factor: Option<Option<f64>>,
pub properties: Option<Value>,
/* private fields */
}Expand description
Patch for update_note. Only Some(_) fields are applied; None means “leave unchanged”.
For salience/decay_factor:
None(outer) — leave unchangedSome(None)— clear the valueSome(Some(v))— set to v
Fields§
§name: Option<Option<String>>§content: Option<String>§salience: Option<Option<f64>>§decay_factor: Option<Option<f64>>§properties: Option<Value>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotePatch
impl RefUnwindSafe for NotePatch
impl Send for NotePatch
impl Sync for NotePatch
impl Unpin for NotePatch
impl UnsafeUnpin for NotePatch
impl UnwindSafe for NotePatch
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