#[non_exhaustive]pub struct Service {
pub name: String,
pub service_id: String,
pub display_name: String,
pub business_entity_name: String,
/* private fields */
}Expand description
Encapsulates a single service in Google Cloud Platform.
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.name: StringThe resource name for the service. Example: “services/6F81-5844-456A”
service_id: StringThe identifier for the service. Example: “6F81-5844-456A”
display_name: StringA human readable display name for this service.
business_entity_name: StringThe business under which the service is offered. Ex. “businessEntities/GCP”, “businessEntities/Maps”
Implementations§
Source§impl Service
impl Service
pub fn new() -> Self
Sourcepub fn set_service_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_business_entity_name<T: Into<String>>(self, v: T) -> Self
pub fn set_business_entity_name<T: Into<String>>(self, v: T) -> Self
Sets the value of business_entity_name.
§Example
ⓘ
let x = Service::new().set_business_entity_name("example");Trait Implementations§
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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