pub struct PrimitiveEvent {
pub occurred_at: OffsetDateTime,
pub source: String,
pub kind: PrimitiveEventKind,
pub paths: Vec<PathBuf>,
pub is_directory: Option<bool>,
}Fields§
§occurred_at: OffsetDateTime§source: String§kind: PrimitiveEventKind§paths: Vec<PathBuf>§is_directory: Option<bool>Implementations§
Source§impl PrimitiveEvent
impl PrimitiveEvent
pub fn new( source: impl Into<String>, kind: PrimitiveEventKind, paths: Vec<PathBuf>, is_directory: Option<bool>, occurred_at: OffsetDateTime, ) -> Self
Trait Implementations§
Source§impl Clone for PrimitiveEvent
impl Clone for PrimitiveEvent
Source§fn clone(&self) -> PrimitiveEvent
fn clone(&self) -> PrimitiveEvent
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 PrimitiveEvent
impl Debug for PrimitiveEvent
Source§impl<'de> Deserialize<'de> for PrimitiveEvent
impl<'de> Deserialize<'de> for PrimitiveEvent
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 PrimitiveEvent
impl PartialEq for PrimitiveEvent
Source§impl Serialize for PrimitiveEvent
impl Serialize for PrimitiveEvent
impl Eq for PrimitiveEvent
impl StructuralPartialEq for PrimitiveEvent
Auto Trait Implementations§
impl Freeze for PrimitiveEvent
impl RefUnwindSafe for PrimitiveEvent
impl Send for PrimitiveEvent
impl Sync for PrimitiveEvent
impl Unpin for PrimitiveEvent
impl UnsafeUnpin for PrimitiveEvent
impl UnwindSafe for PrimitiveEvent
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