pub struct UploadTimelineEvent {
pub position: u64,
pub kind: i32,
pub recorded_at: Option<Timestamp>,
pub tool_name: Option<i32>,
}Expand description
Dedicated event input; canonical encoded event size is at most 2048 bytes.
Fields§
§position: u640..2^63-1; batch positions are consecutive.
kind: i32Maps to the eight lowercase snake-case TimelineRecord.kind strings.
Unspecified/unknown is invalid.
recorded_at: Option<Timestamp>Valid microsecond-normalized device time, at most five minutes in the future at admission. Past timestamps are valid for offline drain.
tool_name: Option<i32>Present exactly for TOOL_STARTED or TOOL_FINISHED. Maps to Bash, Edit, Read, Write, Grep, Glob, Task or Other (at most 5 ASCII bytes).
Zero/unknown is invalid.
Implementations§
Source§impl UploadTimelineEvent
impl UploadTimelineEvent
Sourcepub fn kind(&self) -> UploadTimelineEventKind
pub fn kind(&self) -> UploadTimelineEventKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: UploadTimelineEventKind)
pub fn set_kind(&mut self, value: UploadTimelineEventKind)
Sets kind to the provided enum value.
Sourcepub fn tool_name(&self) -> UploadTimelineTool
pub fn tool_name(&self) -> UploadTimelineTool
Returns the enum value of tool_name, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_tool_name(&mut self, value: UploadTimelineTool)
pub fn set_tool_name(&mut self, value: UploadTimelineTool)
Sets tool_name to the provided enum value.
Trait Implementations§
Source§impl Clone for UploadTimelineEvent
impl Clone for UploadTimelineEvent
Source§fn clone(&self) -> UploadTimelineEvent
fn clone(&self) -> UploadTimelineEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UploadTimelineEvent
Source§impl Debug for UploadTimelineEvent
impl Debug for UploadTimelineEvent
Source§impl Default for UploadTimelineEvent
impl Default for UploadTimelineEvent
Source§fn default() -> UploadTimelineEvent
fn default() -> UploadTimelineEvent
impl Eq for UploadTimelineEvent
Source§impl Hash for UploadTimelineEvent
impl Hash for UploadTimelineEvent
Source§impl Message for UploadTimelineEvent
impl Message for UploadTimelineEvent
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 UploadTimelineEvent
impl PartialEq for UploadTimelineEvent
impl StructuralPartialEq for UploadTimelineEvent
Auto Trait Implementations§
impl Freeze for UploadTimelineEvent
impl RefUnwindSafe for UploadTimelineEvent
impl Send for UploadTimelineEvent
impl Sync for UploadTimelineEvent
impl Unpin for UploadTimelineEvent
impl UnsafeUnpin for UploadTimelineEvent
impl UnwindSafe for UploadTimelineEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more