#[non_exhaustive]pub struct CreateServiceRequest {
pub parent: String,
pub service_id: String,
pub service: Option<Service>,
/* private fields */
}Expand description
The CreateService 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 Metrics Scope. The format is:
projects/[PROJECT_ID_OR_NUMBER]service_id: StringOptional. The Service id to use for this Service. If omitted, an id will be
generated instead. Must match the pattern [a-z0-9\-]+
service: Option<Service>Required. The Service to create.
Implementations§
Source§impl CreateServiceRequest
impl CreateServiceRequest
pub fn new() -> Self
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_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_id.
Sourcepub fn set_service<T>(self, v: T) -> Self
pub fn set_service<T>(self, v: T) -> Self
Sets the value of service.
Trait Implementations§
Source§impl Clone for CreateServiceRequest
impl Clone for CreateServiceRequest
Source§fn clone(&self) -> CreateServiceRequest
fn clone(&self) -> CreateServiceRequest
Returns a duplicate 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 CreateServiceRequest
impl Debug for CreateServiceRequest
Source§impl Default for CreateServiceRequest
impl Default for CreateServiceRequest
Source§fn default() -> CreateServiceRequest
fn default() -> CreateServiceRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateServiceRequest
impl Message for CreateServiceRequest
Source§impl PartialEq for CreateServiceRequest
impl PartialEq for CreateServiceRequest
impl StructuralPartialEq for CreateServiceRequest
Auto Trait Implementations§
impl Freeze for CreateServiceRequest
impl RefUnwindSafe for CreateServiceRequest
impl Send for CreateServiceRequest
impl Sync for CreateServiceRequest
impl Unpin for CreateServiceRequest
impl UnwindSafe for CreateServiceRequest
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