pub struct LocationId(/* private fields */);Expand description
Identifier for a sync location.
String-based to support arbitrary remotes: “pod”, “cloud”, “staging-pod”,
“nas”, “s3-archive”, etc. "local" is reserved as the origin.
Implementations§
Trait Implementations§
Source§impl Clone for LocationId
impl Clone for LocationId
Source§fn clone(&self) -> LocationId
fn clone(&self) -> LocationId
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 LocationId
impl Debug for LocationId
Source§impl<'de> Deserialize<'de> for LocationId
impl<'de> Deserialize<'de> for LocationId
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 Display for LocationId
impl Display for LocationId
Source§impl FromStr for LocationId
impl FromStr for LocationId
Source§impl Hash for LocationId
impl Hash for LocationId
Source§impl Ord for LocationId
impl Ord for LocationId
Source§fn cmp(&self, other: &LocationId) -> Ordering
fn cmp(&self, other: &LocationId) -> Ordering
1.21.0 (const: unstable) · 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 LocationId
impl PartialEq for LocationId
Source§fn eq(&self, other: &LocationId) -> bool
fn eq(&self, other: &LocationId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LocationId
impl PartialOrd for LocationId
Source§impl Serialize for LocationId
impl Serialize for LocationId
impl Eq for LocationId
impl StructuralPartialEq for LocationId
Auto Trait Implementations§
impl Freeze for LocationId
impl RefUnwindSafe for LocationId
impl Send for LocationId
impl Sync for LocationId
impl Unpin for LocationId
impl UnsafeUnpin for LocationId
impl UnwindSafe for LocationId
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