pub struct RepoDetails {
pub generation: Generation,
pub repo_alias: RepoAlias,
pub repo_path: RepoPath,
pub branch: BranchName,
pub forge: ForgeDetails,
pub repo_config: Option<RepoConfig>,
pub gitdir: GitDir,
}
Expand description
The derived information about a repo, used to interact with it
Fields§
§generation: Generation
§repo_alias: RepoAlias
§repo_path: RepoPath
§branch: BranchName
§forge: ForgeDetails
§repo_config: Option<RepoConfig>
§gitdir: GitDir
Implementations§
Source§impl RepoDetails
impl RepoDetails
pub fn with_generation(self, generation: impl Into<Generation>) -> Self
pub fn with_repo_alias(self, repo_alias: impl Into<RepoAlias>) -> Self
pub fn with_repo_path(self, repo_path: impl Into<RepoPath>) -> Self
pub fn with_branch(self, branch: impl Into<BranchName>) -> Self
pub fn with_forge(self, forge: impl Into<ForgeDetails>) -> Self
pub fn with_repo_config( self, repo_config: impl Into<Option<RepoConfig>>, ) -> Self
pub fn with_gitdir(self, gitdir: impl Into<GitDir>) -> Self
Source§impl RepoDetails
impl RepoDetails
pub fn new( generation: Generation, repo_alias: &RepoAlias, server_repo_config: &ServerRepoConfig, forge_alias: &ForgeAlias, forge_config: &ForgeConfig, gitdir: GitDir, ) -> Self
pub fn with_hostname(self, hostname: Hostname) -> Self
pub fn remote_url(&self) -> Option<RemoteUrl>
pub fn assert_remote_url(&self, found: Option<RemoteUrl>) -> Result<()>
pub fn write_remote_url(&self, url: &RemoteUrl) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for RepoDetails
impl Clone for RepoDetails
Source§fn clone(&self) -> RepoDetails
fn clone(&self) -> RepoDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepoDetails
impl Debug for RepoDetails
Auto Trait Implementations§
impl Freeze for RepoDetails
impl RefUnwindSafe for RepoDetails
impl Send for RepoDetails
impl Sync for RepoDetails
impl Unpin for RepoDetails
impl UnwindSafe for RepoDetails
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.