#[non_exhaustive]pub struct InstancesSetNameRequest {
pub current_name: Option<String>,
pub name: Option<String>,
/* private fields */
}Available on crate feature
instances 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.current_name: Option<String>The current name of this resource, used to prevent conflicts. Provide the latest name when making a request to change name.
name: Option<String>The name to be applied to the instance. Needs to be RFC 1035 compliant.
Implementations§
Source§impl InstancesSetNameRequest
impl InstancesSetNameRequest
pub fn new() -> Self
Sourcepub fn set_current_name<T>(self, v: T) -> Self
pub fn set_current_name<T>(self, v: T) -> Self
Sets the value of current_name.
§Example
ⓘ
let x = InstancesSetNameRequest::new().set_current_name("example");Sourcepub fn set_or_clear_current_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_current_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of current_name.
§Example
ⓘ
let x = InstancesSetNameRequest::new().set_or_clear_current_name(Some("example"));
let x = InstancesSetNameRequest::new().set_or_clear_current_name(None::<String>);Trait Implementations§
Source§impl Clone for InstancesSetNameRequest
impl Clone for InstancesSetNameRequest
Source§fn clone(&self) -> InstancesSetNameRequest
fn clone(&self) -> InstancesSetNameRequest
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 InstancesSetNameRequest
impl Debug for InstancesSetNameRequest
Source§impl Default for InstancesSetNameRequest
impl Default for InstancesSetNameRequest
Source§fn default() -> InstancesSetNameRequest
fn default() -> InstancesSetNameRequest
Returns the “default value” for a type. Read more
Source§impl Message for InstancesSetNameRequest
impl Message for InstancesSetNameRequest
Source§impl PartialEq for InstancesSetNameRequest
impl PartialEq for InstancesSetNameRequest
impl StructuralPartialEq for InstancesSetNameRequest
Auto Trait Implementations§
impl Freeze for InstancesSetNameRequest
impl RefUnwindSafe for InstancesSetNameRequest
impl Send for InstancesSetNameRequest
impl Sync for InstancesSetNameRequest
impl Unpin for InstancesSetNameRequest
impl UnwindSafe for InstancesSetNameRequest
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