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