pub struct StorageInfo {
pub storage_type: String,
pub config: Value,
}Expand description
Storage backend block from kopia repository status. config is left as a
raw JSON value because its shape is backend-specific (filesystem path vs S3
bucket/endpoint vs …).
Fields§
§storage_type: StringBackend type, e.g. “filesystem”, “s3”, “gcs”.
config: ValueBackend-specific configuration, opaque here.
Trait Implementations§
Source§impl Clone for StorageInfo
impl Clone for StorageInfo
Source§fn clone(&self) -> StorageInfo
fn clone(&self) -> StorageInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StorageInfo
impl Debug for StorageInfo
Source§impl<'de> Deserialize<'de> for StorageInfo
impl<'de> Deserialize<'de> for StorageInfo
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 StorageInfo
impl PartialEq for StorageInfo
Source§fn eq(&self, other: &StorageInfo) -> bool
fn eq(&self, other: &StorageInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageInfo
impl Serialize for StorageInfo
impl StructuralPartialEq for StorageInfo
Auto Trait Implementations§
impl Freeze for StorageInfo
impl RefUnwindSafe for StorageInfo
impl Send for StorageInfo
impl Sync for StorageInfo
impl Unpin for StorageInfo
impl UnsafeUnpin for StorageInfo
impl UnwindSafe for StorageInfo
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