#[non_exhaustive]pub struct RuleGroupsNamespaceStatusBuilder { /* private fields */ }
Expand description
A builder for RuleGroupsNamespaceStatus
.
Implementations§
source§impl RuleGroupsNamespaceStatusBuilder
impl RuleGroupsNamespaceStatusBuilder
sourcepub fn status_code(self, input: RuleGroupsNamespaceStatusCode) -> Self
pub fn status_code(self, input: RuleGroupsNamespaceStatusCode) -> Self
The current status of the namespace.
This field is required.sourcepub fn set_status_code(
self,
input: Option<RuleGroupsNamespaceStatusCode>
) -> Self
pub fn set_status_code( self, input: Option<RuleGroupsNamespaceStatusCode> ) -> Self
The current status of the namespace.
sourcepub fn get_status_code(&self) -> &Option<RuleGroupsNamespaceStatusCode>
pub fn get_status_code(&self) -> &Option<RuleGroupsNamespaceStatusCode>
The current status of the namespace.
sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
The reason for the failure, if any.
sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
The reason for the failure, if any.
sourcepub fn get_status_reason(&self) -> &Option<String>
pub fn get_status_reason(&self) -> &Option<String>
The reason for the failure, if any.
sourcepub fn build(self) -> Result<RuleGroupsNamespaceStatus, BuildError>
pub fn build(self) -> Result<RuleGroupsNamespaceStatus, BuildError>
Consumes the builder and constructs a RuleGroupsNamespaceStatus
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleGroupsNamespaceStatusBuilder
impl Clone for RuleGroupsNamespaceStatusBuilder
source§fn clone(&self) -> RuleGroupsNamespaceStatusBuilder
fn clone(&self) -> RuleGroupsNamespaceStatusBuilder
Returns a copy 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 RuleGroupsNamespaceStatusBuilder
impl Default for RuleGroupsNamespaceStatusBuilder
source§fn default() -> RuleGroupsNamespaceStatusBuilder
fn default() -> RuleGroupsNamespaceStatusBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RuleGroupsNamespaceStatusBuilder
impl PartialEq for RuleGroupsNamespaceStatusBuilder
source§fn eq(&self, other: &RuleGroupsNamespaceStatusBuilder) -> bool
fn eq(&self, other: &RuleGroupsNamespaceStatusBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleGroupsNamespaceStatusBuilder
Auto Trait Implementations§
impl Freeze for RuleGroupsNamespaceStatusBuilder
impl RefUnwindSafe for RuleGroupsNamespaceStatusBuilder
impl Send for RuleGroupsNamespaceStatusBuilder
impl Sync for RuleGroupsNamespaceStatusBuilder
impl Unpin for RuleGroupsNamespaceStatusBuilder
impl UnwindSafe for RuleGroupsNamespaceStatusBuilder
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
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>
Creates a shared type from an unshared type.