pub struct DraftCompleteEvent { /* private fields */ }Expand description
Draft completion event.
Parsed from Draft_CompleteDraft. Links the draft ID to the event
and marks the draft as finished.
Implementations§
Source§impl DraftCompleteEvent
impl DraftCompleteEvent
Sourcepub fn new(metadata: EventMetadata, payload: Value) -> Self
pub fn new(metadata: EventMetadata, payload: Value) -> Self
Constructs a new event with the given metadata and payload.
Sourcepub fn metadata(&self) -> &EventMetadata
pub fn metadata(&self) -> &EventMetadata
Returns the shared event metadata.
Trait Implementations§
Source§impl Clone for DraftCompleteEvent
impl Clone for DraftCompleteEvent
Source§fn clone(&self) -> DraftCompleteEvent
fn clone(&self) -> DraftCompleteEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DraftCompleteEvent
impl Debug for DraftCompleteEvent
Source§impl<'de> Deserialize<'de> for DraftCompleteEvent
impl<'de> Deserialize<'de> for DraftCompleteEvent
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 DraftCompleteEvent
impl PartialEq for DraftCompleteEvent
Source§fn eq(&self, other: &DraftCompleteEvent) -> bool
fn eq(&self, other: &DraftCompleteEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DraftCompleteEvent
impl Serialize for DraftCompleteEvent
impl StructuralPartialEq for DraftCompleteEvent
Auto Trait Implementations§
impl Freeze for DraftCompleteEvent
impl RefUnwindSafe for DraftCompleteEvent
impl Send for DraftCompleteEvent
impl Sync for DraftCompleteEvent
impl Unpin for DraftCompleteEvent
impl UnsafeUnpin for DraftCompleteEvent
impl UnwindSafe for DraftCompleteEvent
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