#[non_exhaustive]pub struct ResourceServerScopeTypeBuilder { /* private fields */ }Expand description
A builder for ResourceServerScopeType.
Implementations§
source§impl ResourceServerScopeTypeBuilder
impl ResourceServerScopeTypeBuilder
sourcepub fn scope_name(self, input: impl Into<String>) -> Self
pub fn scope_name(self, input: impl Into<String>) -> Self
The name of the scope.
This field is required.sourcepub fn set_scope_name(self, input: Option<String>) -> Self
pub fn set_scope_name(self, input: Option<String>) -> Self
The name of the scope.
sourcepub fn get_scope_name(&self) -> &Option<String>
pub fn get_scope_name(&self) -> &Option<String>
The name of the scope.
sourcepub fn scope_description(self, input: impl Into<String>) -> Self
pub fn scope_description(self, input: impl Into<String>) -> Self
A description of the scope.
This field is required.sourcepub fn set_scope_description(self, input: Option<String>) -> Self
pub fn set_scope_description(self, input: Option<String>) -> Self
A description of the scope.
sourcepub fn get_scope_description(&self) -> &Option<String>
pub fn get_scope_description(&self) -> &Option<String>
A description of the scope.
sourcepub fn build(self) -> Result<ResourceServerScopeType, BuildError>
pub fn build(self) -> Result<ResourceServerScopeType, BuildError>
Consumes the builder and constructs a ResourceServerScopeType.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceServerScopeTypeBuilder
impl Clone for ResourceServerScopeTypeBuilder
source§fn clone(&self) -> ResourceServerScopeTypeBuilder
fn clone(&self) -> ResourceServerScopeTypeBuilder
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 ResourceServerScopeTypeBuilder
impl Default for ResourceServerScopeTypeBuilder
source§fn default() -> ResourceServerScopeTypeBuilder
fn default() -> ResourceServerScopeTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResourceServerScopeTypeBuilder
impl PartialEq for ResourceServerScopeTypeBuilder
source§fn eq(&self, other: &ResourceServerScopeTypeBuilder) -> bool
fn eq(&self, other: &ResourceServerScopeTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourceServerScopeTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResourceServerScopeTypeBuilder
impl Send for ResourceServerScopeTypeBuilder
impl Sync for ResourceServerScopeTypeBuilder
impl Unpin for ResourceServerScopeTypeBuilder
impl UnwindSafe for ResourceServerScopeTypeBuilder
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.