pub struct PrivyConfig {
pub app_id: Option<String>,
pub app_secret: Option<String>,
pub wallet_id: Option<String>,
}Fields§
§app_id: Option<String>§app_secret: Option<String>§wallet_id: Option<String>Implementations§
Source§impl PrivyConfig
impl PrivyConfig
Sourcepub fn merge_with_cli(
self,
app_id: Option<String>,
app_secret: Option<String>,
wallet_id: Option<String>,
) -> Self
pub fn merge_with_cli( self, app_id: Option<String>, app_secret: Option<String>, wallet_id: Option<String>, ) -> Self
Merge CLI arguments with existing config (CLI takes precedence)
Sourcepub fn build(self) -> Result<PrivySigner, PrivyError>
pub fn build(self) -> Result<PrivySigner, PrivyError>
Build a PrivySigner from the config
Trait Implementations§
Source§impl Default for PrivyConfig
impl Default for PrivyConfig
Source§fn default() -> PrivyConfig
fn default() -> PrivyConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrivyConfig
impl RefUnwindSafe for PrivyConfig
impl Send for PrivyConfig
impl Sync for PrivyConfig
impl Unpin for PrivyConfig
impl UnsafeUnpin for PrivyConfig
impl UnwindSafe for PrivyConfig
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>
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>
Converts
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>
Converts
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