pub struct CommonOptions {
pub local_path: Option<String>,
pub remote_path: Option<String>,
pub upload_ratelimit: Option<u64>,
pub rsh: Option<String>,
}Expand description
The common options that can be used for every borg command
Fields§
§local_path: Option<String>The local path to the borg executable. (default = “borg”)
remote_path: Option<String>The remote path to the borg executable. (default = “borg”)
upload_ratelimit: Option<u64>set network upload rate limit in kiByte/s (0 = unlimited)
rsh: Option<String>Use this command to connect to the ‘borg serve’ process (default: “ssh”)
This can be useful to specify an alternative ssh key: “ssh -i /path/to/privkey”
Trait Implementations§
Source§impl Clone for CommonOptions
impl Clone for CommonOptions
Source§fn clone(&self) -> CommonOptions
fn clone(&self) -> CommonOptions
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 CommonOptions
impl Debug for CommonOptions
Source§impl Default for CommonOptions
impl Default for CommonOptions
Source§fn default() -> CommonOptions
fn default() -> CommonOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommonOptions
impl<'de> Deserialize<'de> for CommonOptions
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 From<&CommonOptions> for String
impl From<&CommonOptions> for String
Source§fn from(value: &CommonOptions) -> Self
fn from(value: &CommonOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommonOptions
impl RefUnwindSafe for CommonOptions
impl Send for CommonOptions
impl Sync for CommonOptions
impl Unpin for CommonOptions
impl UnsafeUnpin for CommonOptions
impl UnwindSafe for CommonOptions
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