pub struct Event {
pub seq: u64,
pub ts: u64,
pub kind: String,
pub project: Option<String>,
pub id: Option<String>,
pub path: Option<String>,
pub detail: Option<String>,
}Expand description
One entry in the on-disk change log. One entry in the change log.
Fields§
§seq: u64Monotonic sequence, mirrored in the generation file.
ts: u64Unix seconds.
kind: Stringissues_write, ping, and so on.
project: Option<String>Project touched by the event, when the kind is project-scoped.
id: Option<String>Issue id touched by the event, when the kind is issue-scoped.
path: Option<String>Path of the file that changed, when one did.
detail: Option<String>Free-form extra text (a ping message, say).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Event
impl Serialize for Event
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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