#[non_exhaustive]pub struct NoticesDoc {
pub notices: Vec<Kept>,
pub routes: BTreeMap<NoticeId, Route>,
pub next: u64,
}Expand description
The notices kept, as saved between sessions (the notices document,
notices_schema): each notice with whether it was seen and
resolved, the route each was given, and the next id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.notices: Vec<Kept>§routes: BTreeMap<NoticeId, Route>The route each notice was given, by id.
next: u64The id the next notice raised gets (n<next>).
Trait Implementations§
Source§impl Clone for NoticesDoc
impl Clone for NoticesDoc
Source§fn clone(&self) -> NoticesDoc
fn clone(&self) -> NoticesDoc
Returns a duplicate of the value. Read more
1.0.0 · 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 NoticesDoc
impl Debug for NoticesDoc
Source§impl Default for NoticesDoc
impl Default for NoticesDoc
Source§fn default() -> NoticesDoc
fn default() -> NoticesDoc
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoticesDoc
impl<'de> Deserialize<'de> for NoticesDoc
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 NoticesDoc
impl PartialEq for NoticesDoc
Source§impl Serialize for NoticesDoc
impl Serialize for NoticesDoc
impl StructuralPartialEq for NoticesDoc
Auto Trait Implementations§
impl Freeze for NoticesDoc
impl RefUnwindSafe for NoticesDoc
impl Send for NoticesDoc
impl Sync for NoticesDoc
impl Unpin for NoticesDoc
impl UnsafeUnpin for NoticesDoc
impl UnwindSafe for NoticesDoc
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