pub struct RestoreConfig {
pub source_url: String,
pub prefault: Option<bool>,
}
Fields§
§source_url: String
§prefault: Option<bool>
Implementations§
Source§impl RestoreConfig
impl RestoreConfig
pub fn new(source_url: String) -> RestoreConfig
Trait Implementations§
Source§impl Clone for RestoreConfig
impl Clone for RestoreConfig
Source§fn clone(&self) -> RestoreConfig
fn clone(&self) -> RestoreConfig
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 moreSource§impl Debug for RestoreConfig
impl Debug for RestoreConfig
Source§impl Default for RestoreConfig
impl Default for RestoreConfig
Source§fn default() -> RestoreConfig
fn default() -> RestoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestoreConfig
impl<'de> Deserialize<'de> for RestoreConfig
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
Source§impl PartialEq for RestoreConfig
impl PartialEq for RestoreConfig
Source§impl Serialize for RestoreConfig
impl Serialize for RestoreConfig
impl StructuralPartialEq for RestoreConfig
Auto Trait Implementations§
impl Freeze for RestoreConfig
impl RefUnwindSafe for RestoreConfig
impl Send for RestoreConfig
impl Sync for RestoreConfig
impl Unpin for RestoreConfig
impl UnwindSafe for RestoreConfig
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