pub struct AgentRun {
pub run_id: Option<AgentRunId>,
pub repository: Option<RepositoryRef>,
pub initiating_human_subject: String,
pub service_account_subject: String,
pub provider: String,
pub model: String,
pub harness: String,
pub status: i32,
pub visibility: i32,
pub started_at: Option<Timestamp>,
pub finished_at: Option<Timestamp>,
}Fields§
§run_id: Option<AgentRunId>§repository: Option<RepositoryRef>§initiating_human_subject: String§service_account_subject: String§provider: String§model: String§harness: String§status: i32§visibility: i32§started_at: Option<Timestamp>§finished_at: Option<Timestamp>Implementations§
Source§impl AgentRun
impl AgentRun
Sourcepub fn status(&self) -> AgentRunStatus
pub fn status(&self) -> AgentRunStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: AgentRunStatus)
pub fn set_status(&mut self, value: AgentRunStatus)
Sets status to the provided enum value.
Sourcepub fn visibility(&self) -> AgentVisibility
pub fn visibility(&self) -> AgentVisibility
Returns the enum value of visibility, or the default if the field is set to an invalid enum value.
Sourcepub fn set_visibility(&mut self, value: AgentVisibility)
pub fn set_visibility(&mut self, value: AgentVisibility)
Sets visibility to the provided enum value.
Trait Implementations§
impl Eq for AgentRun
Source§impl Message for AgentRun
impl Message for AgentRun
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for AgentRun
Auto Trait Implementations§
impl Freeze for AgentRun
impl RefUnwindSafe for AgentRun
impl Send for AgentRun
impl Sync for AgentRun
impl Unpin for AgentRun
impl UnsafeUnpin for AgentRun
impl UnwindSafe for AgentRun
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