pub struct SiweOptionsBuilder { /* private fields */ }Implementations§
Source§impl SiweOptionsBuilder
impl SiweOptionsBuilder
pub fn domain(self, domain: impl Into<String>) -> Self
pub fn email_domain_name(self, domain: impl Into<String>) -> Self
pub fn anonymous(self, anonymous: bool) -> Self
pub fn get_nonce( self, get_nonce: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Result<String, RustAuthError>> + Send>> + Send + Sync>, ) -> Self
pub fn verify_message( self, verify_message: Arc<dyn Fn(SiweVerifyMessageArgs) -> Pin<Box<dyn Future<Output = Result<bool, RustAuthError>> + Send>> + Send + Sync>, ) -> Self
pub fn ens_lookup( self, ens_lookup: Arc<dyn Fn(EnsLookupArgs) -> Pin<Box<dyn Future<Output = Result<Option<EnsLookupResult>, RustAuthError>> + Send>> + Send + Sync>, ) -> Self
pub fn schema(self, schema: SiweSchemaOptions) -> Self
pub fn build(self) -> Result<SiweOptions, RustAuthError>
Trait Implementations§
Source§impl Clone for SiweOptionsBuilder
impl Clone for SiweOptionsBuilder
Source§fn clone(&self) -> SiweOptionsBuilder
fn clone(&self) -> SiweOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SiweOptionsBuilder
impl Default for SiweOptionsBuilder
Source§fn default() -> SiweOptionsBuilder
fn default() -> SiweOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SiweOptionsBuilder
impl !UnwindSafe for SiweOptionsBuilder
impl Freeze for SiweOptionsBuilder
impl Send for SiweOptionsBuilder
impl Sync for SiweOptionsBuilder
impl Unpin for SiweOptionsBuilder
impl UnsafeUnpin for SiweOptionsBuilder
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