pub struct VerifiedEvent {
pub by: Option<String>,
pub at_text: Option<String>,
pub at: Option<i64>,
}Expand description
One verification event as recorded in frontmatter, before any judgement about its currency or shape.
Fields§
§by: Option<String>The actor string, such as human:ahormati, when present.
at_text: Option<String>The raw timestamp text, when present.
at: Option<i64>The parsed timestamp, when the text parses.
Implementations§
Source§impl VerifiedEvent
impl VerifiedEvent
Sourcepub fn is_well_formed(&self) -> bool
pub fn is_well_formed(&self) -> bool
Whether this event has an actor and a parseable timestamp.
Sourcepub fn malformed_reason(&self) -> Option<String>
pub fn malformed_reason(&self) -> Option<String>
Why this event is malformed, in plain words.
Trait Implementations§
Source§impl Clone for VerifiedEvent
impl Clone for VerifiedEvent
Source§impl Debug for VerifiedEvent
impl Debug for VerifiedEvent
impl Eq for VerifiedEvent
Source§impl PartialEq for VerifiedEvent
impl PartialEq for VerifiedEvent
impl StructuralPartialEq for VerifiedEvent
Auto Trait Implementations§
impl Forget for VerifiedEvent
impl Freeze for VerifiedEvent
impl Move for VerifiedEvent
impl RefUnwindSafe for VerifiedEvent
impl Send for VerifiedEvent
impl Sync for VerifiedEvent
impl Unpin for VerifiedEvent
impl UnsafeUnpin for VerifiedEvent
impl UnwindSafe for VerifiedEvent
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