#[non_exhaustive]pub struct CreateActiveDirectoryRequest {
pub parent: String,
pub active_directory: Option<ActiveDirectory>,
pub active_directory_id: String,
/* private fields */
}Expand description
CreateActiveDirectoryRequest for creating an active directory.
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.parent: StringRequired. Value for parent.
active_directory: Option<ActiveDirectory>Required. Fields of the to be created active directory.
active_directory_id: StringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum.
Implementations§
Source§impl CreateActiveDirectoryRequest
impl CreateActiveDirectoryRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_active_directory<T>(self, v: T) -> Selfwhere
T: Into<ActiveDirectory>,
pub fn set_active_directory<T>(self, v: T) -> Selfwhere
T: Into<ActiveDirectory>,
Sets the value of active_directory.
§Example
ⓘ
use google_cloud_netapp_v1::model::ActiveDirectory;
let x = CreateActiveDirectoryRequest::new().set_active_directory(ActiveDirectory::default()/* use setters */);Sourcepub fn set_or_clear_active_directory<T>(self, v: Option<T>) -> Selfwhere
T: Into<ActiveDirectory>,
pub fn set_or_clear_active_directory<T>(self, v: Option<T>) -> Selfwhere
T: Into<ActiveDirectory>,
Sets or clears the value of active_directory.
§Example
ⓘ
use google_cloud_netapp_v1::model::ActiveDirectory;
let x = CreateActiveDirectoryRequest::new().set_or_clear_active_directory(Some(ActiveDirectory::default()/* use setters */));
let x = CreateActiveDirectoryRequest::new().set_or_clear_active_directory(None::<ActiveDirectory>);Sourcepub fn set_active_directory_id<T: Into<String>>(self, v: T) -> Self
pub fn set_active_directory_id<T: Into<String>>(self, v: T) -> Self
Sets the value of active_directory_id.
§Example
ⓘ
let x = CreateActiveDirectoryRequest::new().set_active_directory_id("example");Trait Implementations§
Source§impl Clone for CreateActiveDirectoryRequest
impl Clone for CreateActiveDirectoryRequest
Source§fn clone(&self) -> CreateActiveDirectoryRequest
fn clone(&self) -> CreateActiveDirectoryRequest
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 CreateActiveDirectoryRequest
impl Debug for CreateActiveDirectoryRequest
Source§impl Default for CreateActiveDirectoryRequest
impl Default for CreateActiveDirectoryRequest
Source§fn default() -> CreateActiveDirectoryRequest
fn default() -> CreateActiveDirectoryRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateActiveDirectoryRequest
impl PartialEq for CreateActiveDirectoryRequest
Source§fn eq(&self, other: &CreateActiveDirectoryRequest) -> bool
fn eq(&self, other: &CreateActiveDirectoryRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateActiveDirectoryRequest
Auto Trait Implementations§
impl Freeze for CreateActiveDirectoryRequest
impl RefUnwindSafe for CreateActiveDirectoryRequest
impl Send for CreateActiveDirectoryRequest
impl Sync for CreateActiveDirectoryRequest
impl Unpin for CreateActiveDirectoryRequest
impl UnwindSafe for CreateActiveDirectoryRequest
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