pub struct SolverActivityInput {
pub id: String,
pub name: String,
pub duration_source: i32,
pub allowed_segment_ids: Vec<String>,
pub window_unconstrained: bool,
pub pinned: bool,
pub excluded_reason: Option<String>,
pub objective_ids: Vec<String>,
pub finalized_asset_rids: Vec<String>,
pub predecessor_activity_ids: Vec<String>,
pub scope: i32,
pub duration: Option<Duration>,
}Fields§
§id: String§name: String§duration_source: i32§allowed_segment_ids: Vec<String>§window_unconstrained: bool§pinned: bool§excluded_reason: Option<String>§objective_ids: Vec<String>§finalized_asset_rids: Vec<String>§predecessor_activity_ids: Vec<String>§scope: i32§duration: Option<Duration>Implementations§
Source§impl SolverActivityInput
impl SolverActivityInput
Sourcepub fn duration_source(&self) -> SolverDurationSource
pub fn duration_source(&self) -> SolverDurationSource
Returns the enum value of duration_source, or the default if the field is set to an invalid enum value.
Sourcepub fn set_duration_source(&mut self, value: SolverDurationSource)
pub fn set_duration_source(&mut self, value: SolverDurationSource)
Sets duration_source to the provided enum value.
Sourcepub fn excluded_reason(&self) -> &str
pub fn excluded_reason(&self) -> &str
Returns the value of excluded_reason, or the default value if excluded_reason is unset.
Sourcepub fn scope(&self) -> SolverActivityScope
pub fn scope(&self) -> SolverActivityScope
Returns the enum value of scope, or the default if the field is set to an invalid enum value.
Sourcepub fn set_scope(&mut self, value: SolverActivityScope)
pub fn set_scope(&mut self, value: SolverActivityScope)
Sets scope to the provided enum value.
Trait Implementations§
Source§impl Clone for SolverActivityInput
impl Clone for SolverActivityInput
Source§impl Debug for SolverActivityInput
impl Debug for SolverActivityInput
Source§impl Default for SolverActivityInput
impl Default for SolverActivityInput
Source§impl Message for SolverActivityInput
impl Message for SolverActivityInput
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SolverActivityInput
impl PartialEq for SolverActivityInput
impl StructuralPartialEq for SolverActivityInput
Auto Trait Implementations§
impl Freeze for SolverActivityInput
impl RefUnwindSafe for SolverActivityInput
impl Send for SolverActivityInput
impl Sync for SolverActivityInput
impl Unpin for SolverActivityInput
impl UnsafeUnpin for SolverActivityInput
impl UnwindSafe for SolverActivityInput
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request