pub enum RelationTarget {
Version {
ns: String,
name: String,
seq: u32,
},
External(String),
Hf(String),
}Expand description
Where a relation points.
Variants§
Version
A version on this hub, {ns}/{name}@{seq}.
Fields
External(String)
Something outside the hub, written external:<anything>.
Hf(String)
A Hugging Face reference, written hf:<org>/<repo>@<sha>.
Trait Implementations§
Source§impl Clone for RelationTarget
impl Clone for RelationTarget
Source§impl Debug for RelationTarget
impl Debug for RelationTarget
impl Eq for RelationTarget
Source§impl PartialEq for RelationTarget
impl PartialEq for RelationTarget
impl StructuralPartialEq for RelationTarget
Auto Trait Implementations§
impl Freeze for RelationTarget
impl RefUnwindSafe for RelationTarget
impl Send for RelationTarget
impl Sync for RelationTarget
impl Unpin for RelationTarget
impl UnsafeUnpin for RelationTarget
impl UnwindSafe for RelationTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.