pub struct XvcLocalStorage {
pub guid: XvcStorageGuid,
pub name: String,
pub path: PathBuf,
}Expand description
A local storage is a directory that is on the same machine as the repository.
Fields§
§guid: XvcStorageGuidGUID of the storage
name: StringName of the storage
path: PathBufPath to the storage
Trait Implementations§
Source§impl Clone for XvcLocalStorage
impl Clone for XvcLocalStorage
Source§fn clone(&self) -> XvcLocalStorage
fn clone(&self) -> XvcLocalStorage
Returns a copy 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 XvcLocalStorage
impl Debug for XvcLocalStorage
Source§impl<'de> Deserialize<'de> for XvcLocalStorage
impl<'de> Deserialize<'de> for XvcLocalStorage
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 Ord for XvcLocalStorage
impl Ord for XvcLocalStorage
Source§fn cmp(&self, other: &XvcLocalStorage) -> Ordering
fn cmp(&self, other: &XvcLocalStorage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for XvcLocalStorage
impl PartialEq for XvcLocalStorage
Source§impl PartialOrd for XvcLocalStorage
impl PartialOrd for XvcLocalStorage
Source§impl Serialize for XvcLocalStorage
impl Serialize for XvcLocalStorage
Source§impl XvcStorageOperations for XvcLocalStorage
impl XvcStorageOperations for XvcLocalStorage
Source§fn init(
&mut self,
output: &XvcOutputSender,
_xvc_root: &XvcRoot,
) -> Result<XvcStorageInitEvent>
fn init( &mut self, output: &XvcOutputSender, _xvc_root: &XvcRoot, ) -> Result<XvcStorageInitEvent>
The init operation is creates a directory with the “short guid” of the Xvc repository and
adds a .xvc-guid file with the guid of the storage.
Source§fn list(
&self,
_output: &XvcOutputSender,
_xvc_root: &XvcRoot,
) -> Result<XvcStorageListEvent>
fn list( &self, _output: &XvcOutputSender, _xvc_root: &XvcRoot, ) -> Result<XvcStorageListEvent>
Used by xvc file list command to list the contents of a directory in the storage.
Source§fn send(
&self,
output: &XvcOutputSender,
xvc_root: &XvcRoot,
paths: &[XvcCachePath],
force: bool,
) -> Result<XvcStorageSendEvent>
fn send( &self, output: &XvcOutputSender, xvc_root: &XvcRoot, paths: &[XvcCachePath], force: bool, ) -> Result<XvcStorageSendEvent>
Used by xvc file send command to send files to the storage.
Source§fn receive(
&self,
output: &XvcOutputSender,
xvc_root: &XvcRoot,
paths: &[XvcCachePath],
_force: bool,
) -> Result<(XvcStorageTempDir, XvcStorageReceiveEvent)>
fn receive( &self, output: &XvcOutputSender, xvc_root: &XvcRoot, paths: &[XvcCachePath], _force: bool, ) -> Result<(XvcStorageTempDir, XvcStorageReceiveEvent)>
Used by xvc file bring command to bring files from the storage.
Source§fn delete(
&self,
output: &XvcOutputSender,
xvc_root: &XvcRoot,
paths: &[XvcCachePath],
) -> Result<XvcStorageDeleteEvent>
fn delete( &self, output: &XvcOutputSender, xvc_root: &XvcRoot, paths: &[XvcCachePath], ) -> Result<XvcStorageDeleteEvent>
Used by xvc file remove command to remove files from the storage.
Used to share files from S3 compatible storages with a signed URL.
impl Eq for XvcLocalStorage
impl StructuralPartialEq for XvcLocalStorage
Auto Trait Implementations§
impl Freeze for XvcLocalStorage
impl RefUnwindSafe for XvcLocalStorage
impl Send for XvcLocalStorage
impl Sync for XvcLocalStorage
impl Unpin for XvcLocalStorage
impl UnwindSafe for XvcLocalStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more