pub struct SnapshotAdminConfig {
pub path: PathBuf,
pub admin: Arc<dyn SnapshotAdmin>,
}Expand description
Snapshot admin surface. Mounted as a unit so that
/admin/snapshot/{save,load} always have a configured default
path: an operator who set --snapshot-path is the one paying the
cost of the route’s existence, and they reasonably expect the
path to be resolved automatically when no path field is sent in
the request body.
Fields§
§path: PathBuf§admin: Arc<dyn SnapshotAdmin>Trait Implementations§
Source§impl Clone for SnapshotAdminConfig
impl Clone for SnapshotAdminConfig
Source§fn clone(&self) -> SnapshotAdminConfig
fn clone(&self) -> SnapshotAdminConfig
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 SnapshotAdminConfig
impl !RefUnwindSafe for SnapshotAdminConfig
impl Send for SnapshotAdminConfig
impl Sync for SnapshotAdminConfig
impl Unpin for SnapshotAdminConfig
impl UnsafeUnpin for SnapshotAdminConfig
impl !UnwindSafe for SnapshotAdminConfig
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