Struct temporal_sdk_core::protos::temporal::api::history::v1::HistoryEvent[][src]

pub struct HistoryEvent {
    pub event_id: i64,
    pub event_time: Option<Timestamp>,
    pub event_type: i32,
    pub version: i64,
    pub task_id: i64,
    pub attributes: Option<Attributes>,
}

Fields

event_id: i64event_time: Option<Timestamp>event_type: i32version: i64task_id: i64attributes: Option<Attributes>

Implementations

impl HistoryEvent[src]

pub fn event_type(&self) -> EventType[src]

Returns the enum value of event_type, or the default if the field is set to an invalid enum value.

pub fn set_event_type(&mut self, value: EventType)[src]

Sets event_type to the provided enum value.

impl HistoryEvent[src]

pub fn is_command_event(&self) -> bool[src]

Returns true if this is an event created to mirror a command

pub fn get_initial_command_event_id(&self) -> Option<i64>[src]

Returns the command’s initiating event id, if present. This is the id of the event which “started” the command. Usually, the “scheduled” event for the command.

pub fn is_final_wf_execution_event(&self) -> bool[src]

Returns true if the event is one which would end a workflow

Trait Implementations

impl Clone for HistoryEvent[src]

impl Debug for HistoryEvent[src]

impl Default for HistoryEvent[src]

impl Display for HistoryEvent[src]

impl Message for HistoryEvent[src]

impl PartialEq<HistoryEvent> for HistoryEvent[src]

impl StructuralPartialEq for HistoryEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]