pub struct SetupRemote<'a> {
pub rid: RepoId,
pub tracking: Option<BranchName>,
pub fetch: bool,
pub repo: &'a Repository,
}Expand description
Setup a repository remote and tracking branch.
Fields§
§rid: RepoIdThe repository id.
tracking: Option<BranchName>Whether or not to setup a remote tracking branch.
fetch: boolWhether or not to fetch the remote immediately.
repo: &'a RepositoryThe repository in which to setup the remote.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SetupRemote<'a>
impl<'a> RefUnwindSafe for SetupRemote<'a>
impl<'a> !Send for SetupRemote<'a>
impl<'a> !Sync for SetupRemote<'a>
impl<'a> Unpin for SetupRemote<'a>
impl<'a> UnwindSafe for SetupRemote<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more