#[non_exhaustive]pub struct ServiceClass {
pub name: String,
pub service_class: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub etag: Option<String>,
/* private fields */
}Expand description
The ServiceClass resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringImmutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names
service_class: StringOutput only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.
create_time: Option<Timestamp>Output only. Time when the ServiceClass was created.
update_time: Option<Timestamp>Output only. Time when the ServiceClass was updated.
labels: HashMap<String, String>User-defined labels.
description: StringA description of this resource.
etag: Option<String>Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Implementations§
Source§impl ServiceClass
impl ServiceClass
pub fn new() -> Self
Sourcepub fn set_service_class<T: Into<String>>(self, v: T) -> Self
pub fn set_service_class<T: Into<String>>(self, v: T) -> Self
Sets the value of service_class.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Trait Implementations§
Source§impl Clone for ServiceClass
impl Clone for ServiceClass
Source§fn clone(&self) -> ServiceClass
fn clone(&self) -> ServiceClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more