pub struct UpdateIndicatorRequest {
pub indicator_id: String,
pub name: Option<String>,
pub unit: Option<String>,
pub direction: Option<i32>,
pub frequency: Option<i32>,
pub owner_user_id: Option<String>,
pub evidence_source: Option<EvidenceSource>,
pub rationale: Option<String>,
pub strategic_meaning: Option<String>,
pub interpretation_guidance: Option<String>,
pub perverse_behavior_note: Option<String>,
pub target: Option<f64>,
}Expand description
Request to update an indicator.
Every mutable field carries explicit presence and they all follow one
rule: a field left absent leaves the stored value untouched, and a
field that is present replaces it — including when the value sent is
empty. This is what lets an author delete server-pre-filled text such
as perverse_behavior_note instead of only overwriting it.
Fields§
§indicator_id: StringID of the indicator to update. Required.
name: Option<String>New name. Constraints: Max length 200 characters.
unit: Option<String>New unit. Constraints: Max length 50 characters.
direction: Option<i32>New direction.
frequency: Option<i32>New cadence.
owner_user_id: Option<String>New accountable user. Present and empty detaches the owner.
evidence_source: Option<EvidenceSource>New evidence source.
rationale: Option<String>New rationale. Constraints: Max length 2000 characters.
strategic_meaning: Option<String>New strategic meaning. Constraints: Max length 2000 characters.
interpretation_guidance: Option<String>New interpretation guidance. Constraints: Max length 2000 characters.
perverse_behavior_note: Option<String>New note on encouraged behaviour. Present and empty deletes the note, which is how an author rejects the server’s pre-filled text. Constraints: Max length 2000 characters.
target: Option<f64>New target.
Implementations§
Source§impl UpdateIndicatorRequest
impl UpdateIndicatorRequest
Sourcepub fn direction(&self) -> IndicatorDirection
pub fn direction(&self) -> IndicatorDirection
Returns the enum value of direction, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_direction(&mut self, value: IndicatorDirection)
pub fn set_direction(&mut self, value: IndicatorDirection)
Sets direction to the provided enum value.
Sourcepub fn frequency(&self) -> IndicatorFrequency
pub fn frequency(&self) -> IndicatorFrequency
Returns the enum value of frequency, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_frequency(&mut self, value: IndicatorFrequency)
pub fn set_frequency(&mut self, value: IndicatorFrequency)
Sets frequency to the provided enum value.
Sourcepub fn owner_user_id(&self) -> &str
pub fn owner_user_id(&self) -> &str
Returns the value of owner_user_id, or the default value if owner_user_id is unset.
Sourcepub fn rationale(&self) -> &str
pub fn rationale(&self) -> &str
Returns the value of rationale, or the default value if rationale is unset.
Sourcepub fn strategic_meaning(&self) -> &str
pub fn strategic_meaning(&self) -> &str
Returns the value of strategic_meaning, or the default value if strategic_meaning is unset.
Sourcepub fn interpretation_guidance(&self) -> &str
pub fn interpretation_guidance(&self) -> &str
Returns the value of interpretation_guidance, or the default value if interpretation_guidance is unset.
Sourcepub fn perverse_behavior_note(&self) -> &str
pub fn perverse_behavior_note(&self) -> &str
Returns the value of perverse_behavior_note, or the default value if perverse_behavior_note is unset.
Trait Implementations§
Source§impl Clone for UpdateIndicatorRequest
impl Clone for UpdateIndicatorRequest
Source§fn clone(&self) -> UpdateIndicatorRequest
fn clone(&self) -> UpdateIndicatorRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateIndicatorRequest
impl Debug for UpdateIndicatorRequest
Source§impl Default for UpdateIndicatorRequest
impl Default for UpdateIndicatorRequest
Source§impl Message for UpdateIndicatorRequest
impl Message for UpdateIndicatorRequest
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 UpdateIndicatorRequest
impl PartialEq for UpdateIndicatorRequest
impl StructuralPartialEq for UpdateIndicatorRequest
Auto Trait Implementations§
impl Freeze for UpdateIndicatorRequest
impl RefUnwindSafe for UpdateIndicatorRequest
impl Send for UpdateIndicatorRequest
impl Sync for UpdateIndicatorRequest
impl Unpin for UpdateIndicatorRequest
impl UnsafeUnpin for UpdateIndicatorRequest
impl UnwindSafe for UpdateIndicatorRequest
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