pub struct RestoreRequest {
pub backup: Option<String>,
pub destination: Option<String>,
pub key: Option<String>,
pub target: Option<String>,
pub new: Option<NewDatabase>,
pub confirm: bool,
}Expand description
What a restore takes from.
Fields§
§backup: Option<String>The backup whose objects to restore from (its destination and
prefix), or destination and key.
destination: Option<String>§key: Option<String>The object (default: the backup’s newest).
target: Option<String>An existing database to restore into (its data is replaced).
new: Option<NewDatabase>Or a new database to create for it.
confirm: boolRequired to restore over an existing database.
Trait Implementations§
Source§impl Clone for RestoreRequest
impl Clone for RestoreRequest
Source§impl Debug for RestoreRequest
impl Debug for RestoreRequest
Source§impl Default for RestoreRequest
impl Default for RestoreRequest
Source§impl<'de> Deserialize<'de> for RestoreRequest
impl<'de> Deserialize<'de> for RestoreRequest
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 RestoreRequest
impl RefUnwindSafe for RestoreRequest
impl Send for RestoreRequest
impl Sync for RestoreRequest
impl Unpin for RestoreRequest
impl UnsafeUnpin for RestoreRequest
impl UnwindSafe for RestoreRequest
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