#[non_exhaustive]pub struct BackendServiceReference {
pub backend_service: Option<String>,
/* private fields */
}Available on crate features
global-network-endpoint-groups or network-endpoint-groups or region-network-endpoint-groups 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_service: Option<String>Implementations§
Source§impl BackendServiceReference
impl BackendServiceReference
pub fn new() -> Self
Sourcepub fn set_backend_service<T>(self, v: T) -> Self
pub fn set_backend_service<T>(self, v: T) -> Self
Sets the value of backend_service.
§Example
ⓘ
let x = BackendServiceReference::new().set_backend_service("example");Sourcepub fn set_or_clear_backend_service<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_backend_service<T>(self, v: Option<T>) -> Self
Sets or clears the value of backend_service.
§Example
ⓘ
let x = BackendServiceReference::new().set_or_clear_backend_service(Some("example"));
let x = BackendServiceReference::new().set_or_clear_backend_service(None::<String>);Trait Implementations§
Source§impl Clone for BackendServiceReference
impl Clone for BackendServiceReference
Source§fn clone(&self) -> BackendServiceReference
fn clone(&self) -> BackendServiceReference
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 BackendServiceReference
impl Debug for BackendServiceReference
Source§impl Default for BackendServiceReference
impl Default for BackendServiceReference
Source§fn default() -> BackendServiceReference
fn default() -> BackendServiceReference
Returns the “default value” for a type. Read more
Source§impl Message for BackendServiceReference
impl Message for BackendServiceReference
Source§impl PartialEq for BackendServiceReference
impl PartialEq for BackendServiceReference
impl StructuralPartialEq for BackendServiceReference
Auto Trait Implementations§
impl Freeze for BackendServiceReference
impl RefUnwindSafe for BackendServiceReference
impl Send for BackendServiceReference
impl Sync for BackendServiceReference
impl Unpin for BackendServiceReference
impl UnwindSafe for BackendServiceReference
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