pub struct GetHistoryEventsResponse {
pub events: Vec<FlowHistoryEvent>,
pub next_page_token: Vec<u8>,
pub next_internal_event_id: i64,
pub pruned_event_id_range: Option<HistoryEventIdRange>,
}Fields§
§events: Vec<FlowHistoryEvent>§next_page_token: Vec<u8>§next_internal_event_id: i64§pruned_event_id_range: Option<HistoryEventIdRange>The event IDs that the history window removed from this run, as of this response.
The Server keeps a recent window of each run’s history. It always keeps the FlowStartedOrContinued event, which is event 1, and it removes older events after it in chunks. The range therefore starts at event ID 2. Every event whose ID is inside this inclusive range is gone. No page and no run attempt returns it again. The range only grows while the run records new events.
Use the range to classify a related event ID, such as StepMethodEventContext.from_event_id or StepMethodEventContext.wait_for_completed_event_id. An ID inside the range names a removed event. An ID outside the range was not removed as of this response. Such an ID can still name an event outside the run attempt lineage that GetHistoryEventsRequest.run_attempt selects, or an event the run has not recorded yet. The related IDs that Step method events carry always name events of their own lineage.
Event IDs grow across the whole run, and removal follows that order, so the removed IDs form one range. The range is the same on every page and for every run attempt of the run. It can include IDs of events that belong only to other run attempts.
Unset when the history window has removed no event. Also unset from a Server that does not report removed events.
Trait Implementations§
Source§impl Clone for GetHistoryEventsResponse
impl Clone for GetHistoryEventsResponse
Source§impl Debug for GetHistoryEventsResponse
impl Debug for GetHistoryEventsResponse
Source§impl Default for GetHistoryEventsResponse
impl Default for GetHistoryEventsResponse
Source§impl Message for GetHistoryEventsResponse
impl Message for GetHistoryEventsResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GetHistoryEventsResponse
impl PartialEq for GetHistoryEventsResponse
impl StructuralPartialEq for GetHistoryEventsResponse
Auto Trait Implementations§
impl Freeze for GetHistoryEventsResponse
impl RefUnwindSafe for GetHistoryEventsResponse
impl Send for GetHistoryEventsResponse
impl Sync for GetHistoryEventsResponse
impl Unpin for GetHistoryEventsResponse
impl UnsafeUnpin for GetHistoryEventsResponse
impl UnwindSafe for GetHistoryEventsResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request