pub struct RepoUrl {
pub scheme: String,
pub host: String,
pub owner: String,
pub name: String,
pub path: String,
/* private fields */
}Fields§
§scheme: String§host: String§owner: String§name: String§path: StringImplementations§
source§impl RepoUrl
impl RepoUrl
pub fn new(git_host_url: &str) -> Result<Self>
pub fn from_repo(repo: &Repo) -> Result<Self, Error>
pub fn is_on_github(&self) -> bool
pub fn full_host(&self) -> String
sourcepub fn git_release_link(&self, prev_tag: &str, new_tag: &str) -> String
pub fn git_release_link(&self, prev_tag: &str, new_tag: &str) -> String
Get GitHub/Gitea release link
pub fn git_pr_link(&self) -> String
pub fn gitea_api_url(&self) -> String
pub fn gitlab_api_url(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoUrl
impl RefUnwindSafe for RepoUrl
impl Send for RepoUrl
impl Sync for RepoUrl
impl Unpin for RepoUrl
impl UnwindSafe for RepoUrl
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> 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