#[non_exhaustive]pub struct CapabilitiesBuilder { /* private fields */ }Expand description
A builder for Capabilities.
Implementations§
Source§impl CapabilitiesBuilder
impl CapabilitiesBuilder
Sourcepub fn supported_authentication_types(self, input: AuthenticationType) -> Self
pub fn supported_authentication_types(self, input: AuthenticationType) -> Self
Appends an item to supported_authentication_types.
To override the contents of this collection use set_supported_authentication_types.
A list of supported authentication types.
Sourcepub fn set_supported_authentication_types(
self,
input: Option<Vec<AuthenticationType>>,
) -> Self
pub fn set_supported_authentication_types( self, input: Option<Vec<AuthenticationType>>, ) -> Self
A list of supported authentication types.
Sourcepub fn get_supported_authentication_types(
&self,
) -> &Option<Vec<AuthenticationType>>
pub fn get_supported_authentication_types( &self, ) -> &Option<Vec<AuthenticationType>>
A list of supported authentication types.
Sourcepub fn supported_data_operations(self, input: DataOperation) -> Self
pub fn supported_data_operations(self, input: DataOperation) -> Self
Appends an item to supported_data_operations.
To override the contents of this collection use set_supported_data_operations.
A list of supported data operations.
Sourcepub fn set_supported_data_operations(
self,
input: Option<Vec<DataOperation>>,
) -> Self
pub fn set_supported_data_operations( self, input: Option<Vec<DataOperation>>, ) -> Self
A list of supported data operations.
Sourcepub fn get_supported_data_operations(&self) -> &Option<Vec<DataOperation>>
pub fn get_supported_data_operations(&self) -> &Option<Vec<DataOperation>>
A list of supported data operations.
Sourcepub fn supported_compute_environments(self, input: ComputeEnvironment) -> Self
pub fn supported_compute_environments(self, input: ComputeEnvironment) -> Self
Appends an item to supported_compute_environments.
To override the contents of this collection use set_supported_compute_environments.
A list of supported compute environments.
Sourcepub fn set_supported_compute_environments(
self,
input: Option<Vec<ComputeEnvironment>>,
) -> Self
pub fn set_supported_compute_environments( self, input: Option<Vec<ComputeEnvironment>>, ) -> Self
A list of supported compute environments.
Sourcepub fn get_supported_compute_environments(
&self,
) -> &Option<Vec<ComputeEnvironment>>
pub fn get_supported_compute_environments( &self, ) -> &Option<Vec<ComputeEnvironment>>
A list of supported compute environments.
Sourcepub fn build(self) -> Result<Capabilities, BuildError>
pub fn build(self) -> Result<Capabilities, BuildError>
Consumes the builder and constructs a Capabilities.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for CapabilitiesBuilder
impl Clone for CapabilitiesBuilder
Source§fn clone(&self) -> CapabilitiesBuilder
fn clone(&self) -> CapabilitiesBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilitiesBuilder
impl Debug for CapabilitiesBuilder
Source§impl Default for CapabilitiesBuilder
impl Default for CapabilitiesBuilder
Source§fn default() -> CapabilitiesBuilder
fn default() -> CapabilitiesBuilder
Source§impl PartialEq for CapabilitiesBuilder
impl PartialEq for CapabilitiesBuilder
Source§fn eq(&self, other: &CapabilitiesBuilder) -> bool
fn eq(&self, other: &CapabilitiesBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapabilitiesBuilder
Auto Trait Implementations§
impl Freeze for CapabilitiesBuilder
impl RefUnwindSafe for CapabilitiesBuilder
impl Send for CapabilitiesBuilder
impl Sync for CapabilitiesBuilder
impl Unpin for CapabilitiesBuilder
impl UnsafeUnpin for CapabilitiesBuilder
impl UnwindSafe for CapabilitiesBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more