pub struct UpdateRunConfig {
pub runs: Option<MultiRunReference>,
pub name: Option<StringReference>,
pub description: Option<StringReference>,
pub time_range: Option<TimeRangeReference>,
pub labels: Option<MultiStringReference>,
pub properties: Vec<PropertyReference>,
pub strict_overwrite: Option<bool>,
}Expand description
An action to update an existing run when a step is completed (e.g. set end time to previous step end time).
option (buf.validate.message).cel = { id: “update_run_config.at_least_one_update” message: “At least one update field (name, description, time_range, labels, or properties) must be set” expression: “has(this.name) || has(this.description) || has(this.time_range) || has(this.labels) || this.properties.size() > 0” };
Fields§
§runs: Option<MultiRunReference>The run(s) to update. Typically but not limited to a reference to a run created earlier in the procedure
name: Option<StringReference>Optional PATCH-style updates. Only set fields that should change. If unset, the run will not be updated.
description: Option<StringReference>§time_range: Option<TimeRangeReference>§labels: Option<MultiStringReference>TODO(ryanyost): support patch-behavior for labels
properties: Vec<PropertyReference>TODO(ryanyost): support patch-behavior for properties
strict_overwrite: Option<bool>When true, time fields overwrite existing values. When false, start only moves earlier, end only moves later (aligns with runs API strictOverwrite).
Implementations§
Source§impl UpdateRunConfig
impl UpdateRunConfig
Sourcepub fn strict_overwrite(&self) -> bool
pub fn strict_overwrite(&self) -> bool
Returns the value of strict_overwrite, or the default value if strict_overwrite is unset.
Trait Implementations§
Source§impl Clone for UpdateRunConfig
impl Clone for UpdateRunConfig
Source§fn clone(&self) -> UpdateRunConfig
fn clone(&self) -> UpdateRunConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateRunConfig
impl Debug for UpdateRunConfig
Source§impl Default for UpdateRunConfig
impl Default for UpdateRunConfig
Source§impl Message for UpdateRunConfig
impl Message for UpdateRunConfig
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 UpdateRunConfig
impl PartialEq for UpdateRunConfig
impl StructuralPartialEq for UpdateRunConfig
Auto Trait Implementations§
impl Freeze for UpdateRunConfig
impl RefUnwindSafe for UpdateRunConfig
impl Send for UpdateRunConfig
impl Sync for UpdateRunConfig
impl Unpin for UpdateRunConfig
impl UnsafeUnpin for UpdateRunConfig
impl UnwindSafe for UpdateRunConfig
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