#[non_exhaustive]pub struct BasicService {
pub service_type: String,
pub service_labels: HashMap<String, String>,
}Expand description
A well-known service type, defined by its service type and service labels. Documentation and examples here.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service_type: StringThe type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.
service_labels: HashMap<String, String>Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this Service.
Documentation and valid values for given service types
here.
Implementations§
Source§impl BasicService
impl BasicService
Sourcepub fn set_service_type<T: Into<String>>(self, v: T) -> Self
pub fn set_service_type<T: Into<String>>(self, v: T) -> Self
Sets the value of service_type.
Sourcepub fn set_service_labels<T, K, V>(self, v: T) -> Self
pub fn set_service_labels<T, K, V>(self, v: T) -> Self
Sets the value of service_labels.
Trait Implementations§
Source§impl Clone for BasicService
impl Clone for BasicService
Source§fn clone(&self) -> BasicService
fn clone(&self) -> BasicService
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 BasicService
impl Debug for BasicService
Source§impl Default for BasicService
impl Default for BasicService
Source§fn default() -> BasicService
fn default() -> BasicService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BasicServicewhere
BasicService: Default,
impl<'de> Deserialize<'de> for BasicServicewhere
BasicService: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for BasicService
impl Message for BasicService
Source§impl PartialEq for BasicService
impl PartialEq for BasicService
Source§impl Serialize for BasicService
impl Serialize for BasicService
impl StructuralPartialEq for BasicService
Auto Trait Implementations§
impl Freeze for BasicService
impl RefUnwindSafe for BasicService
impl Send for BasicService
impl Sync for BasicService
impl Unpin for BasicService
impl UnwindSafe for BasicService
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