pub struct AddIndicatorRequest {Show 13 fields
pub objective_id: String,
pub name: String,
pub unit: String,
pub direction: i32,
pub frequency: i32,
pub owner_user_id: String,
pub evidence_source: Option<EvidenceSource>,
pub rationale: String,
pub strategic_meaning: String,
pub interpretation_guidance: String,
pub perverse_behavior_note: String,
pub target: Option<f64>,
pub verification_unit_level: i32,
}Expand description
Request to attach an indicator to an objective.
Fields§
§objective_id: StringObjective the indicator hangs from. Required.
name: StringShort name. Required. Constraints: Max length 200 characters.
unit: StringUnit the readings are expressed in. Optional. Constraints: Max length 50 characters.
direction: i32Desired direction of movement.
frequency: i32Expected reading cadence.
owner_user_id: StringAccountable user. Optional.
evidence_source: Option<EvidenceSource>Where readings come from. Required.
rationale: StringWhy this indicator was chosen. Optional. Constraints: Max length 2000 characters.
strategic_meaning: StringWhat it is meant to say about the objective. Optional. Constraints: Max length 2000 characters.
interpretation_guidance: StringHow a reading should be read. Optional. Constraints: Max length 2000 characters.
perverse_behavior_note: StringBehaviour the indicator could encourage if optimized on its own. Optional; the server pre-fills it when left empty and the evidence source implies one. Constraints: Max length 2000 characters.
target: Option<f64>The value being aimed for, expressed in unit. Optional.
verification_unit_level: i32Level of unit a verification question about this indicator is put at. Optional; unspecified follows the organization’s default rather than selecting a level.
Implementations§
Source§impl AddIndicatorRequest
impl AddIndicatorRequest
Sourcepub fn direction(&self) -> IndicatorDirection
pub fn direction(&self) -> IndicatorDirection
Returns the enum value of direction, or the default if the field is 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 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 target(&self) -> f64
pub fn target(&self) -> f64
Returns the value of target, or the default value if target is unset.
Sourcepub fn verification_unit_level(&self) -> VerificationUnitLevel
pub fn verification_unit_level(&self) -> VerificationUnitLevel
Returns the enum value of verification_unit_level, or the default if the field is set to an invalid enum value.
Sourcepub fn set_verification_unit_level(&mut self, value: VerificationUnitLevel)
pub fn set_verification_unit_level(&mut self, value: VerificationUnitLevel)
Sets verification_unit_level to the provided enum value.
Trait Implementations§
Source§impl Clone for AddIndicatorRequest
impl Clone for AddIndicatorRequest
Source§fn clone(&self) -> AddIndicatorRequest
fn clone(&self) -> AddIndicatorRequest
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 AddIndicatorRequest
impl Debug for AddIndicatorRequest
Source§impl Default for AddIndicatorRequest
impl Default for AddIndicatorRequest
Source§impl Message for AddIndicatorRequest
impl Message for AddIndicatorRequest
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 AddIndicatorRequest
impl PartialEq for AddIndicatorRequest
impl StructuralPartialEq for AddIndicatorRequest
Auto Trait Implementations§
impl Freeze for AddIndicatorRequest
impl RefUnwindSafe for AddIndicatorRequest
impl Send for AddIndicatorRequest
impl Sync for AddIndicatorRequest
impl Unpin for AddIndicatorRequest
impl UnsafeUnpin for AddIndicatorRequest
impl UnwindSafe for AddIndicatorRequest
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