pub struct NoteCollectionCounts {
pub notebook_counts: Option<BTreeMap<Guid, i32>>,
pub tag_counts: Option<BTreeMap<Guid, i32>>,
pub trash_count: Option<i32>,
}Expand description
A data structure representing the number of notes for each notebook and tag with a non-zero set of applicable notes.
- notebookCounts
- A mapping from the Notebook GUID to the number of notes (from some selection) that are in the corresponding notebook.
- tagCounts
- A mapping from the Tag GUID to the number of notes (from some selection) that have the corresponding tag.
- trashCount
- If this is set, then this is the number of notes that are in the trash. If this is not set, then the number of notes in the trash hasn't been reported. (I.e. if there are no notes in the trash, this will be set to 0.)
Fields§
§notebook_counts: Option<BTreeMap<Guid, i32>>§tag_counts: Option<BTreeMap<Guid, i32>>§trash_count: Option<i32>Implementations§
Trait Implementations§
Source§impl Clone for NoteCollectionCounts
impl Clone for NoteCollectionCounts
Source§fn clone(&self) -> NoteCollectionCounts
fn clone(&self) -> NoteCollectionCounts
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 NoteCollectionCounts
impl Debug for NoteCollectionCounts
Source§impl Default for NoteCollectionCounts
impl Default for NoteCollectionCounts
Source§fn default() -> NoteCollectionCounts
fn default() -> NoteCollectionCounts
Returns the “default value” for a type. Read more
impl Eq for NoteCollectionCounts
Source§impl Hash for NoteCollectionCounts
impl Hash for NoteCollectionCounts
Source§impl Ord for NoteCollectionCounts
impl Ord for NoteCollectionCounts
Source§fn cmp(&self, other: &NoteCollectionCounts) -> Ordering
fn cmp(&self, other: &NoteCollectionCounts) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoteCollectionCounts
impl PartialEq for NoteCollectionCounts
Source§impl PartialOrd for NoteCollectionCounts
impl PartialOrd for NoteCollectionCounts
impl StructuralPartialEq for NoteCollectionCounts
Source§impl TSerializable for NoteCollectionCounts
impl TSerializable for NoteCollectionCounts
fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<NoteCollectionCounts>
fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> Result<()>
Auto Trait Implementations§
impl Freeze for NoteCollectionCounts
impl RefUnwindSafe for NoteCollectionCounts
impl Send for NoteCollectionCounts
impl Sync for NoteCollectionCounts
impl Unpin for NoteCollectionCounts
impl UnsafeUnpin for NoteCollectionCounts
impl UnwindSafe for NoteCollectionCounts
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