pub struct NotePreimage {
pub content: Option<String>,
pub salience: Option<Option<f64>>,
pub decay_factor: Option<Option<f64>>,
pub properties: Option<BTreeMap<String, PropertyValue>>,
pub tags: Option<Vec<String>>,
}Expand description
Prior note values for exactly the fields touched by NotePatch.
Captured salience is finite in [0.0, 1.0]; decay factor is finite and non-negative.
Fields§
§content: Option<String>§salience: Option<Option<f64>>§decay_factor: Option<Option<f64>>§properties: Option<BTreeMap<String, PropertyValue>>Trait Implementations§
Source§impl Clone for NotePreimage
impl Clone for NotePreimage
Source§fn clone(&self) -> NotePreimage
fn clone(&self) -> NotePreimage
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 NotePreimage
impl Debug for NotePreimage
Source§impl<'de> Deserialize<'de> for NotePreimage
impl<'de> Deserialize<'de> for NotePreimage
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 NotePreimage
impl PartialEq for NotePreimage
Source§impl Serialize for NotePreimage
impl Serialize for NotePreimage
impl StructuralPartialEq for NotePreimage
Auto Trait Implementations§
impl Freeze for NotePreimage
impl RefUnwindSafe for NotePreimage
impl Send for NotePreimage
impl Sync for NotePreimage
impl Unpin for NotePreimage
impl UnsafeUnpin for NotePreimage
impl UnwindSafe for NotePreimage
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