pub struct PrivyConfig {
pub api_url: String,
pub app_id: String,
pub app_secret: SecretString,
pub authorization_key: SecretString,
}Expand description
Configuration for creating a PrivyClient.
Sensitive fields (app_secret, authorization_key) are wrapped in
SecretString to prevent accidental logging via Debug.
Fields§
§api_url: StringPrivy API base URL (defaults to https://api.privy.io).
app_id: StringPrivy app ID.
app_secret: SecretStringPrivy app secret (used for HTTP basic auth).
Authorization key in "wallet-auth:<base64-pkcs8-der>" format.
Implementations§
Source§impl PrivyConfig
impl PrivyConfig
pub fn new( app_id: String, app_secret: SecretString, authorization_key: SecretString, ) -> Self
pub fn with_api_url(self, url: String) -> Self
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