#[non_exhaustive]pub struct CreateServiceLevelObjectiveRequest {
    pub parent: String,
    pub service_level_objective_id: String,
    pub service_level_objective: Option<ServiceLevelObjective>,
}Expand description
The CreateServiceLevelObjective request.
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.parent: StringRequired. Resource name of the parent Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]service_level_objective_id: StringOptional. The ServiceLevelObjective id to use for this
ServiceLevelObjective. If omitted, an id will be generated instead. Must
match the pattern ^[a-zA-Z0-9-_:.]+$
service_level_objective: Option<ServiceLevelObjective>Required. The ServiceLevelObjective to create.
The provided name will be respected if no ServiceLevelObjective exists
with this name.
Implementations§
Source§impl CreateServiceLevelObjectiveRequest
 
impl CreateServiceLevelObjectiveRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
 
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_service_level_objective_id<T: Into<String>>(self, v: T) -> Self
 
pub fn set_service_level_objective_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_level_objective_id.
Sourcepub fn set_service_level_objective<T: Into<Option<ServiceLevelObjective>>>(
    self,
    v: T,
) -> Self
 
pub fn set_service_level_objective<T: Into<Option<ServiceLevelObjective>>>( self, v: T, ) -> Self
Sets the value of service_level_objective.
Trait Implementations§
Source§impl Clone for CreateServiceLevelObjectiveRequest
 
impl Clone for CreateServiceLevelObjectiveRequest
Source§fn clone(&self) -> CreateServiceLevelObjectiveRequest
 
fn clone(&self) -> CreateServiceLevelObjectiveRequest
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 Default for CreateServiceLevelObjectiveRequest
 
impl Default for CreateServiceLevelObjectiveRequest
Source§fn default() -> CreateServiceLevelObjectiveRequest
 
fn default() -> CreateServiceLevelObjectiveRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateServiceLevelObjectiveRequest
 
impl<'de> Deserialize<'de> for CreateServiceLevelObjectiveRequest
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 PartialEq for CreateServiceLevelObjectiveRequest
 
impl PartialEq for CreateServiceLevelObjectiveRequest
Source§fn eq(&self, other: &CreateServiceLevelObjectiveRequest) -> bool
 
fn eq(&self, other: &CreateServiceLevelObjectiveRequest) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateServiceLevelObjectiveRequest
Auto Trait Implementations§
impl Freeze for CreateServiceLevelObjectiveRequest
impl RefUnwindSafe for CreateServiceLevelObjectiveRequest
impl Send for CreateServiceLevelObjectiveRequest
impl Sync for CreateServiceLevelObjectiveRequest
impl Unpin for CreateServiceLevelObjectiveRequest
impl UnwindSafe for CreateServiceLevelObjectiveRequest
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