pub enum CodeRepo {
Url(Url),
Repository {
coordinate: Coordinate,
relay_hint: Option<RelayUrl>,
},
}Expand description
repo reference flavours: a plain URL or a NIP-34 repository
addressable coordinate (with optional relay hint).
Variants§
Url(Url)
Plain HTTP URL pointing at a public repo browser page.
Repository
NIP-34 kind: 30617 repository announcement coordinate.
Trait Implementations§
impl Eq for CodeRepo
impl StructuralPartialEq for CodeRepo
Auto Trait Implementations§
impl Freeze for CodeRepo
impl RefUnwindSafe for CodeRepo
impl Send for CodeRepo
impl Sync for CodeRepo
impl Unpin for CodeRepo
impl UnsafeUnpin for CodeRepo
impl UnwindSafe for CodeRepo
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§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.