pub struct Config {
pub base_url: String,
pub private_key: String,
pub dashboard_user: Option<DashboardUser>,
pub dashboard_hmac_key: Option<String>,
}Expand description
Client configuration.
Fields§
§base_url: StringBase URL of the appserv provider API, e.g. https://appserv.example.com.
private_key: StringBase64-encoded ED25519 private key (32-byte seed or 64-byte seed+public key).
dashboard_user: Option<DashboardUser>Optional dashboard operator context, signed into each request.
dashboard_hmac_key: Option<String>Dedicated HMAC secret for the X-MountOS-Dashboard-User header (appserv
DASHBOARD_USER_HMAC_KEY); required when dashboard_user is set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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