pub struct ServiceContract {
pub deployment_targets: Vec<i32>,
pub maturity: i32,
}Fields§
§deployment_targets: Vec<i32>§maturity: i32Implementations§
Source§impl ServiceContract
impl ServiceContract
Sourcepub fn deployment_targets(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DeploymentTarget>>
pub fn deployment_targets( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DeploymentTarget>>
Returns an iterator which yields the valid enum values contained in deployment_targets.
Sourcepub fn push_deployment_targets(&mut self, value: DeploymentTarget)
pub fn push_deployment_targets(&mut self, value: DeploymentTarget)
Appends the provided enum value to deployment_targets.
Sourcepub fn maturity(&self) -> ServiceMaturity
pub fn maturity(&self) -> ServiceMaturity
Returns the enum value of maturity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_maturity(&mut self, value: ServiceMaturity)
pub fn set_maturity(&mut self, value: ServiceMaturity)
Sets maturity to the provided enum value.
Trait Implementations§
Source§impl Clone for ServiceContract
impl Clone for ServiceContract
Source§fn clone(&self) -> ServiceContract
fn clone(&self) -> ServiceContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceContract
impl Debug for ServiceContract
Source§impl Default for ServiceContract
impl Default for ServiceContract
impl Eq for ServiceContract
Source§impl Hash for ServiceContract
impl Hash for ServiceContract
Source§impl Message for ServiceContract
impl Message for ServiceContract
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 ServiceContract
impl PartialEq for ServiceContract
impl StructuralPartialEq for ServiceContract
Auto Trait Implementations§
impl Freeze for ServiceContract
impl RefUnwindSafe for ServiceContract
impl Send for ServiceContract
impl Sync for ServiceContract
impl Unpin for ServiceContract
impl UnsafeUnpin for ServiceContract
impl UnwindSafe for ServiceContract
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