#[non_exhaustive]pub struct ServerBinding {
pub type: Option<Type>,
/* private fields */
}Available on crate features
node-groups or node-templates 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.type: Option<Type>Implementations§
Source§impl ServerBinding
impl ServerBinding
pub fn new() -> Self
Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of r#type.
§Example
ⓘ
use google_cloud_compute_v1::model::server_binding::Type;
let x0 = ServerBinding::new().set_or_clear_type(Some(Type::RestartNodeOnMinimalServers));
let x1 = ServerBinding::new().set_or_clear_type(Some(Type::ServerBindingTypeUnspecified));
let x_none = ServerBinding::new().set_or_clear_type(None::<Type>);Trait Implementations§
Source§impl Clone for ServerBinding
impl Clone for ServerBinding
Source§fn clone(&self) -> ServerBinding
fn clone(&self) -> ServerBinding
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 ServerBinding
impl Debug for ServerBinding
Source§impl Default for ServerBinding
impl Default for ServerBinding
Source§fn default() -> ServerBinding
fn default() -> ServerBinding
Returns the “default value” for a type. Read more
Source§impl Message for ServerBinding
impl Message for ServerBinding
Source§impl PartialEq for ServerBinding
impl PartialEq for ServerBinding
impl StructuralPartialEq for ServerBinding
Auto Trait Implementations§
impl Freeze for ServerBinding
impl RefUnwindSafe for ServerBinding
impl Send for ServerBinding
impl Sync for ServerBinding
impl Unpin for ServerBinding
impl UnwindSafe for ServerBinding
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