pub struct NomadRef<'a, Ref> {
pub user: User<'a>,
pub host: Host<'a>,
pub branch: Branch<'a>,
pub ref_: Ref,
}
Expand description
A ref representing a branch managed by nomad.
Fields§
§user: User<'a>
The user this branch belongs to.
host: Host<'a>
The host this branch comes from.
branch: Branch<'a>
The branch name.
ref_: Ref
Any additional internal data representing the underlying git ref.
Implementations§
source§impl<Ref> NomadRef<'_, Ref>
impl<Ref> NomadRef<'_, Ref>
sourcepub fn to_git_remote_ref(&self) -> String
pub fn to_git_remote_ref(&self) -> String
A nomad ref in the remote. The remote may have many users that all use git-nomad
and
so shouldn’t step on each others toes.
Trait Implementations§
source§impl<'a, Ref> FromIterator<NomadRef<'a, Ref>> for RemoteNomadRefSet
impl<'a, Ref> FromIterator<NomadRef<'a, Ref>> for RemoteNomadRefSet
impl<'a, Ref: Eq> Eq for NomadRef<'a, Ref>
impl<'a, Ref> StructuralPartialEq for NomadRef<'a, Ref>
Auto Trait Implementations§
impl<'a, Ref> Freeze for NomadRef<'a, Ref>where
Ref: Freeze,
impl<'a, Ref> RefUnwindSafe for NomadRef<'a, Ref>where
Ref: RefUnwindSafe,
impl<'a, Ref> Send for NomadRef<'a, Ref>where
Ref: Send,
impl<'a, Ref> Sync for NomadRef<'a, Ref>where
Ref: Sync,
impl<'a, Ref> Unpin for NomadRef<'a, Ref>where
Ref: Unpin,
impl<'a, Ref> UnwindSafe for NomadRef<'a, Ref>where
Ref: UnwindSafe,
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