pub struct ServiceSlo {
pub id: Option<String>,
pub name: Option<String>,
pub service_name: Option<String>,
pub status: i32,
pub description: Option<String>,
pub target_percentage: Option<u32>,
pub created_at: Option<Timestamp>,
pub remaining_error_budget_percentage: Option<u32>,
pub filters: Vec<SliFilter>,
pub period: i32,
pub sli_type: Option<SliType>,
}
Fields§
§id: Option<String>
§name: Option<String>
§service_name: Option<String>
§status: i32
§description: Option<String>
§target_percentage: Option<u32>
§created_at: Option<Timestamp>
§remaining_error_budget_percentage: Option<u32>
§filters: Vec<SliFilter>
§period: i32
§sli_type: Option<SliType>
Implementations§
source§impl ServiceSlo
impl ServiceSlo
sourcepub fn status(&self) -> SloStatus
pub fn status(&self) -> SloStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: SloStatus)
pub fn set_status(&mut self, value: SloStatus)
Sets status
to the provided enum value.
sourcepub fn period(&self) -> SloPeriod
pub fn period(&self) -> SloPeriod
Returns the enum value of period
, or the default if the field is set to an invalid enum value.
sourcepub fn set_period(&mut self, value: SloPeriod)
pub fn set_period(&mut self, value: SloPeriod)
Sets period
to the provided enum value.
Trait Implementations§
source§impl Clone for ServiceSlo
impl Clone for ServiceSlo
source§fn clone(&self) -> ServiceSlo
fn clone(&self) -> ServiceSlo
Returns a copy of the value. Read more
1.0.0 · 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 ServiceSlo
impl Debug for ServiceSlo
source§impl Default for ServiceSlo
impl Default for ServiceSlo
source§fn default() -> ServiceSlo
fn default() -> ServiceSlo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceSlo
impl<'de> Deserialize<'de> for ServiceSlo
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceSlo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceSlo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for ServiceSlo
impl Message for ServiceSlo
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 ServiceSlo
impl PartialEq for ServiceSlo
source§impl Serialize for ServiceSlo
impl Serialize for ServiceSlo
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ServiceSlo
Auto Trait Implementations§
impl Freeze for ServiceSlo
impl RefUnwindSafe for ServiceSlo
impl Send for ServiceSlo
impl Sync for ServiceSlo
impl Unpin for ServiceSlo
impl UnwindSafe for ServiceSlo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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