pub struct UpdateObjectiveRequest {
pub objective_id: String,
pub title: Option<String>,
pub description: Option<String>,
pub owner_user_id: Option<String>,
pub state: Option<i32>,
pub ends_at: Option<Timestamp>,
pub kind: Option<i32>,
pub parent_objective_id: Option<String>,
}Expand description
Request to update an objective.
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. Clearing a field is therefore expressible, which matters for text an author wants gone rather than merely reworded.
Fields§
§objective_id: StringID of the objective to update. Required.
title: Option<String>New statement. Constraints: Max length 300 characters.
description: Option<String>New explanation. Constraints: Max length 4000 characters.
owner_user_id: Option<String>New accountable user. Present and empty detaches the owner.
state: Option<i32>New lifecycle state. Archiving an objective is done here, by sending OBJECTIVE_STATE_ARCHIVED.
ends_at: Option<Timestamp>New expected end for an initiative. Reclassifying to OBJECTIVE_KIND_OBJECTIVE clears it regardless of what is sent here, since a standing objective has no end.
kind: Option<i32>Reclassify between a standing objective and a time-bounded initiative, so that an OBJECTIVE_WRITING_ISSUE_PROJECT_FORM advisory can be acted on without recreating the entry.
parent_objective_id: Option<String>For an initiative, the standing objective it contributes to. Present and empty detaches it and leaves the initiative standing alone.
Implementations§
Source§impl UpdateObjectiveRequest
impl UpdateObjectiveRequest
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
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 state(&self) -> ObjectiveState
pub fn state(&self) -> ObjectiveState
Returns the enum value of state, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: ObjectiveState)
pub fn set_state(&mut self, value: ObjectiveState)
Sets state to the provided enum value.
Sourcepub fn kind(&self) -> ObjectiveKind
pub fn kind(&self) -> ObjectiveKind
Returns the enum value of kind, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: ObjectiveKind)
pub fn set_kind(&mut self, value: ObjectiveKind)
Sets kind to the provided enum value.
Sourcepub fn parent_objective_id(&self) -> &str
pub fn parent_objective_id(&self) -> &str
Returns the value of parent_objective_id, or the default value if parent_objective_id is unset.
Trait Implementations§
Source§impl Clone for UpdateObjectiveRequest
impl Clone for UpdateObjectiveRequest
Source§fn clone(&self) -> UpdateObjectiveRequest
fn clone(&self) -> UpdateObjectiveRequest
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 UpdateObjectiveRequest
impl Debug for UpdateObjectiveRequest
Source§impl Default for UpdateObjectiveRequest
impl Default for UpdateObjectiveRequest
impl Eq for UpdateObjectiveRequest
Source§impl Hash for UpdateObjectiveRequest
impl Hash for UpdateObjectiveRequest
Source§impl Message for UpdateObjectiveRequest
impl Message for UpdateObjectiveRequest
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 UpdateObjectiveRequest
impl PartialEq for UpdateObjectiveRequest
impl StructuralPartialEq for UpdateObjectiveRequest
Auto Trait Implementations§
impl Freeze for UpdateObjectiveRequest
impl RefUnwindSafe for UpdateObjectiveRequest
impl Send for UpdateObjectiveRequest
impl Sync for UpdateObjectiveRequest
impl Unpin for UpdateObjectiveRequest
impl UnsafeUnpin for UpdateObjectiveRequest
impl UnwindSafe for UpdateObjectiveRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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