pub struct DocumentCheck {
pub node_id: NodeId,
pub is_emergency: bool,
pub is_ack: bool,
}Expand description
Result from checking if a document contains an emergency
Fields§
§node_id: NodeIdNode ID from the document
is_emergency: boolWhether this document contains an emergency
is_ack: boolWhether this document contains an ACK
Implementations§
Source§impl DocumentCheck
impl DocumentCheck
Sourcepub fn from_document(data: &[u8]) -> Option<Self>
pub fn from_document(data: &[u8]) -> Option<Self>
Quick check of a document without full parsing
Trait Implementations§
Source§impl Clone for DocumentCheck
impl Clone for DocumentCheck
Source§fn clone(&self) -> DocumentCheck
fn clone(&self) -> DocumentCheck
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 moreAuto Trait Implementations§
impl Freeze for DocumentCheck
impl RefUnwindSafe for DocumentCheck
impl Send for DocumentCheck
impl Sync for DocumentCheck
impl Unpin for DocumentCheck
impl UnwindSafe for DocumentCheck
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