pub struct SnapshotRequest {
pub path: Option<String>,
}Expand description
Request body for POST /admin/snapshot/{save,load}. The body is
optional; when it is absent (or an empty JSON object) the server uses
the path configured in AdminConfig.
Supplying a path override lets an operator snapshot to / restore from
an arbitrary filesystem location in a single request. Any client that
can reach the admin surface can write to any path the server process
can write to — deploy the admin surface behind authenticated transport
only. We deliberately do not sandbox the path here; a well-meaning
whitelist would give a false sense of safety without auth.
Fields§
§path: Option<String>Override the configured snapshot path for this request only.
Trait Implementations§
Source§impl Debug for SnapshotRequest
impl Debug for SnapshotRequest
Source§impl Default for SnapshotRequest
impl Default for SnapshotRequest
Source§fn default() -> SnapshotRequest
fn default() -> SnapshotRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotRequestwhere
SnapshotRequest: Default,
impl<'de> Deserialize<'de> for SnapshotRequestwhere
SnapshotRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SnapshotRequest
impl RefUnwindSafe for SnapshotRequest
impl Send for SnapshotRequest
impl Sync for SnapshotRequest
impl Unpin for SnapshotRequest
impl UnsafeUnpin for SnapshotRequest
impl UnwindSafe for SnapshotRequest
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