pub struct BackupState {
pub pool: ConnPool,
pub db_path: PathBuf,
pub backup_dir: PathBuf,
pub node_name: String,
}Expand description
Shared state for backup routes.
Fields§
§pool: ConnPool§db_path: PathBuf§backup_dir: PathBuf§node_name: StringTrait Implementations§
Source§impl Clone for BackupState
impl Clone for BackupState
Source§fn clone(&self) -> BackupState
fn clone(&self) -> BackupState
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 BackupState
impl !RefUnwindSafe for BackupState
impl Send for BackupState
impl Sync for BackupState
impl Unpin for BackupState
impl UnsafeUnpin for BackupState
impl !UnwindSafe for BackupState
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