#[non_exhaustive]pub struct BackendServicesScopedList {
pub backend_services: Vec<BackendService>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
backend-services only.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.backend_services: Vec<BackendService>A list of BackendServices contained in this scope.
warning: Option<Warning>Informational warning which replaces the list of backend services when the list is empty.
Implementations§
Source§impl BackendServicesScopedList
impl BackendServicesScopedList
pub fn new() -> Self
Sourcepub fn set_backend_services<T, V>(self, v: T) -> Self
pub fn set_backend_services<T, V>(self, v: T) -> Self
Sets the value of backend_services.
§Example
ⓘ
use google_cloud_compute_v1::model::BackendService;
let x = BackendServicesScopedList::new()
.set_backend_services([
BackendService::default()/* use setters */,
BackendService::default()/* use (different) setters */,
]);Sourcepub fn set_warning<T>(self, v: T) -> Self
pub fn set_warning<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
Sets or clears the value of warning.
§Example
ⓘ
use google_cloud_compute_v1::model::backend_services_scoped_list::Warning;
let x = BackendServicesScopedList::new().set_or_clear_warning(Some(Warning::default()/* use setters */));
let x = BackendServicesScopedList::new().set_or_clear_warning(None::<Warning>);Trait Implementations§
Source§impl Clone for BackendServicesScopedList
impl Clone for BackendServicesScopedList
Source§fn clone(&self) -> BackendServicesScopedList
fn clone(&self) -> BackendServicesScopedList
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 BackendServicesScopedList
impl Debug for BackendServicesScopedList
Source§impl Default for BackendServicesScopedList
impl Default for BackendServicesScopedList
Source§fn default() -> BackendServicesScopedList
fn default() -> BackendServicesScopedList
Returns the “default value” for a type. Read more
Source§impl Message for BackendServicesScopedList
impl Message for BackendServicesScopedList
impl StructuralPartialEq for BackendServicesScopedList
Auto Trait Implementations§
impl Freeze for BackendServicesScopedList
impl RefUnwindSafe for BackendServicesScopedList
impl Send for BackendServicesScopedList
impl Sync for BackendServicesScopedList
impl Unpin for BackendServicesScopedList
impl UnwindSafe for BackendServicesScopedList
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