Enum vstorage::sync::declare::DeclaredMapping
source · pub enum DeclaredMapping {
Direct {
description: CollectionDescription,
},
Mapped {
alias: String,
a: CollectionDescription,
b: CollectionDescription,
},
}
Expand description
A mapping between of a pair of collections across storages.
This is an unresolved mapping which may be lacking information on one side.
Variants§
Direct
Copy between two collections with the same definition on both sides.
Usage of CollectionDescription::Href
between different storage implementations is
discouraged.
Fields
§
description: CollectionDescription
Mapped
Copy between two collections with explicit definitions on both sides.
Fields
Implementations§
source§impl DeclaredMapping
impl DeclaredMapping
sourcepub fn direct(id: CollectionId) -> Self
pub fn direct(id: CollectionId) -> Self
Create a direct mapping.
This creates the simplest kind of mapping: it maps two collections with the same
CollectionId
.
Trait Implementations§
source§impl Clone for DeclaredMapping
impl Clone for DeclaredMapping
source§fn clone(&self) -> DeclaredMapping
fn clone(&self) -> DeclaredMapping
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 moreAuto Trait Implementations§
impl Freeze for DeclaredMapping
impl RefUnwindSafe for DeclaredMapping
impl Send for DeclaredMapping
impl Sync for DeclaredMapping
impl Unpin for DeclaredMapping
impl UnwindSafe for DeclaredMapping
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> 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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.