pub struct Request {
pub project_id: String,
pub status: Option<i32>,
pub page_token: Option<TokenPagination>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub agent_name: Option<String>,
pub mode: Option<i32>,
}Fields§
§project_id: String§status: Option<i32>§page_token: Option<TokenPagination>§start_time: Option<Timestamp>Half-open window [start_time, end_time) on created_at, the leading key of this list’s keyset. Unset bounds mean no window, so existing callers keep their unbounded scan; the histogram’s selected range sets both.
end_time: Option<Timestamp>§agent_name: Option<String>Exact agent name. Unset means every agent — including the runs whose name is empty, which a bare string could not tell from no filter.
mode: Option<i32>Absent applies no mode filter. TEXT matches runs stored as TEXT or
UNSPECIFIED, which SimulationRun.mode defines as the same mode.
Implementations§
Source§impl Request
impl Request
Sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the enum value of status, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Sets status to the provided enum value.
Sourcepub fn agent_name(&self) -> &str
pub fn agent_name(&self) -> &str
Returns the value of agent_name, or the default value if agent_name is unset.
Sourcepub fn mode(&self) -> SimulationMode
pub fn mode(&self) -> SimulationMode
Returns the enum value of mode, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: SimulationMode)
pub fn set_mode(&mut self, value: SimulationMode)
Sets mode to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
§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>,
impl Eq for Request
Source§impl Message for Request
impl Message for Request
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.