#[non_exhaustive]pub struct ValidateDirectoryServiceRequest {
pub name: String,
pub directory_service_type: DirectoryServiceType,
/* private fields */
}Expand description
ValidateDirectoryServiceRequest validates the directory service policy attached to the storage pool.
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.name: StringRequired. Name of the storage pool
directory_service_type: DirectoryServiceTypeType of directory service policy attached to the storage pool.
Implementations§
Source§impl ValidateDirectoryServiceRequest
impl ValidateDirectoryServiceRequest
pub fn new() -> Self
Sourcepub fn set_directory_service_type<T: Into<DirectoryServiceType>>(
self,
v: T,
) -> Self
pub fn set_directory_service_type<T: Into<DirectoryServiceType>>( self, v: T, ) -> Self
Sets the value of directory_service_type.
§Example
ⓘ
use google_cloud_netapp_v1::model::DirectoryServiceType;
let x0 = ValidateDirectoryServiceRequest::new().set_directory_service_type(DirectoryServiceType::ActiveDirectory);Trait Implementations§
Source§impl Clone for ValidateDirectoryServiceRequest
impl Clone for ValidateDirectoryServiceRequest
Source§fn clone(&self) -> ValidateDirectoryServiceRequest
fn clone(&self) -> ValidateDirectoryServiceRequest
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 Default for ValidateDirectoryServiceRequest
impl Default for ValidateDirectoryServiceRequest
Source§fn default() -> ValidateDirectoryServiceRequest
fn default() -> ValidateDirectoryServiceRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ValidateDirectoryServiceRequest
impl PartialEq for ValidateDirectoryServiceRequest
Source§fn eq(&self, other: &ValidateDirectoryServiceRequest) -> bool
fn eq(&self, other: &ValidateDirectoryServiceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidateDirectoryServiceRequest
Auto Trait Implementations§
impl Freeze for ValidateDirectoryServiceRequest
impl RefUnwindSafe for ValidateDirectoryServiceRequest
impl Send for ValidateDirectoryServiceRequest
impl Sync for ValidateDirectoryServiceRequest
impl Unpin for ValidateDirectoryServiceRequest
impl UnwindSafe for ValidateDirectoryServiceRequest
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