pub struct AdminConfig {
pub snapshot_path: PathBuf,
pub admin: Arc<dyn SnapshotAdmin>,
}Expand description
Configuration for the admin surface. When present, build_app_with_admin
(or serve_with_admin) mounts POST /admin/snapshot/save and
POST /admin/snapshot/load that drive the configured admin handle.
The endpoints are intentionally opt-in: exposing them without
authentication on a network-reachable interface is a footgun, so the
caller must explicitly construct an AdminConfig and pass it to the
server — there is no implicit default path.
Fields§
§snapshot_path: PathBuf§admin: Arc<dyn SnapshotAdmin>Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AdminConfig
impl !RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnsafeUnpin for AdminConfig
impl !UnwindSafe for AdminConfig
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