pub struct Event {
pub action: String,
pub version: String,
pub state: State,
pub public: bool,
pub principal: String,
pub at: Option<u64>,
}Expand description
One change to a script’s head: what its history is made of.
Fields§
§action: Stringpublish, draft or retire.
version: StringThe version the head pointed at afterwards.
state: StateThe state afterwards.
public: boolWhether it was public afterwards.
principal: StringWho: the principal the writer’s capability named (crate::authority::principal_of).
at: Option<u64>When, in milliseconds since the epoch, from the kernel’s clock (None on a
clockless kernel).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl Eq for Event
impl StructuralPartialEq for Event
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