pub struct GitSnapshotSourceRef(/* private fields */);Expand description
Exact source custom ref for one snapshot operation.
Implementations§
Source§impl GitSnapshotSourceRef
impl GitSnapshotSourceRef
Sourcepub fn for_operation(operation_id: &str) -> Result<Self, GitSnapshotError>
pub fn for_operation(operation_id: &str) -> Result<Self, GitSnapshotError>
Derive the only accepted source ref for operation_id.
§Errors
Returns GitSnapshotError::InvalidOperation for a non-ref-safe operation identifier.
Trait Implementations§
Source§impl Clone for GitSnapshotSourceRef
impl Clone for GitSnapshotSourceRef
Source§impl Debug for GitSnapshotSourceRef
impl Debug for GitSnapshotSourceRef
Source§impl<'de> Deserialize<'de> for GitSnapshotSourceRef
impl<'de> Deserialize<'de> for GitSnapshotSourceRef
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
impl Eq for GitSnapshotSourceRef
Source§impl Ord for GitSnapshotSourceRef
impl Ord for GitSnapshotSourceRef
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GitSnapshotSourceRef
impl PartialEq for GitSnapshotSourceRef
Source§impl PartialOrd for GitSnapshotSourceRef
impl PartialOrd for GitSnapshotSourceRef
Source§impl Serialize for GitSnapshotSourceRef
impl Serialize for GitSnapshotSourceRef
impl StructuralPartialEq for GitSnapshotSourceRef
Auto Trait Implementations§
impl Freeze for GitSnapshotSourceRef
impl RefUnwindSafe for GitSnapshotSourceRef
impl Send for GitSnapshotSourceRef
impl Sync for GitSnapshotSourceRef
impl Unpin for GitSnapshotSourceRef
impl UnsafeUnpin for GitSnapshotSourceRef
impl UnwindSafe for GitSnapshotSourceRef
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.