pub struct CreateObjectiveRequest {
pub title: String,
pub description: String,
pub owner_user_id: String,
pub kind: i32,
pub parent_objective_id: String,
pub ends_at: Option<Timestamp>,
pub state: i32,
}Expand description
Request to create an objective.
Fields§
§title: StringThe statement. Required. Constraints: Max length 300 characters.
description: StringLonger explanation. Optional. Constraints: Max length 4000 characters.
owner_user_id: StringAccountable user. Optional.
kind: i32Standing objective or time-bounded initiative. Defaults to OBJECTIVE_KIND_OBJECTIVE when unspecified.
parent_objective_id: StringFor an initiative, the standing objective it contributes to. Optional; must be empty for a standing objective.
ends_at: Option<Timestamp>For an initiative, its expected end. Must be unset for a standing objective.
state: i32Initial lifecycle state. Defaults to OBJECTIVE_STATE_DRAFT when unspecified. OBJECTIVE_STATE_ARCHIVED is rejected.
Implementations§
Source§impl CreateObjectiveRequest
impl CreateObjectiveRequest
Sourcepub fn kind(&self) -> ObjectiveKind
pub fn kind(&self) -> ObjectiveKind
Returns the enum value of kind, or the default if the field is 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 state(&self) -> ObjectiveState
pub fn state(&self) -> ObjectiveState
Returns the enum value of state, or the default if the field is 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.
Trait Implementations§
Source§impl Clone for CreateObjectiveRequest
impl Clone for CreateObjectiveRequest
Source§fn clone(&self) -> CreateObjectiveRequest
fn clone(&self) -> CreateObjectiveRequest
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 CreateObjectiveRequest
impl Debug for CreateObjectiveRequest
Source§impl Default for CreateObjectiveRequest
impl Default for CreateObjectiveRequest
impl Eq for CreateObjectiveRequest
Source§impl Hash for CreateObjectiveRequest
impl Hash for CreateObjectiveRequest
Source§impl Message for CreateObjectiveRequest
impl Message for CreateObjectiveRequest
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 CreateObjectiveRequest
impl PartialEq for CreateObjectiveRequest
impl StructuralPartialEq for CreateObjectiveRequest
Auto Trait Implementations§
impl Freeze for CreateObjectiveRequest
impl RefUnwindSafe for CreateObjectiveRequest
impl Send for CreateObjectiveRequest
impl Sync for CreateObjectiveRequest
impl Unpin for CreateObjectiveRequest
impl UnsafeUnpin for CreateObjectiveRequest
impl UnwindSafe for CreateObjectiveRequest
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