pub enum HostingType {
GitHub,
GitLab,
BitBucket,
SourceHut,
Gitea,
Girocco,
RocketGit,
Allura,
Unknown,
}Variants§
GitHub
https://github.com - proprietary
GitLab
https://about.gitlab.com - OSS
BitBucket
https://bitbucket.org - proprietary
SourceHut
https://sr.ht/~sircmpwn/sourcehut - OSS - Low-tech (no JS) hacker tool, (almost) suckless style
Gitea
https://gitea.io - OSS
Girocco
RocketGit
https://rocketgit.com - OSS
Allura
Unknown
NOTE: The rust masters said, this is better then Option<None>!
Implementations§
Source§impl HostingType
impl HostingType
pub const fn is_oss(self) -> bool
pub const fn supports_clone_url(self, protocol: TransferProtocol) -> bool
pub const fn def_ssh_user(self) -> &'static str
Trait Implementations§
Source§impl Clone for HostingType
impl Clone for HostingType
Source§fn clone(&self) -> HostingType
fn clone(&self) -> HostingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostingType
impl Debug for HostingType
Source§impl Default for HostingType
impl Default for HostingType
Source§impl<'_derivative_strum> From<&'_derivative_strum HostingType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum HostingType> for &'static str
Source§fn from(x: &'_derivative_strum HostingType) -> &'static str
fn from(x: &'_derivative_strum HostingType) -> &'static str
Converts to this type from the input type.
Source§impl From<HostingType> for &'static str
impl From<HostingType> for &'static str
Source§fn from(x: HostingType) -> &'static str
fn from(x: HostingType) -> &'static str
Converts to this type from the input type.
Source§impl From<PublicSite> for HostingType
impl From<PublicSite> for HostingType
Source§fn from(site: PublicSite) -> Self
fn from(site: PublicSite) -> Self
Converts to this type from the input type.
Source§impl FromStr for HostingType
impl FromStr for HostingType
Source§impl PartialEq for HostingType
impl PartialEq for HostingType
Source§impl TryFrom<&str> for HostingType
impl TryFrom<&str> for HostingType
Source§impl ValueEnum for HostingType
impl ValueEnum for HostingType
Source§impl VariantNames for HostingType
impl VariantNames for HostingType
impl Copy for HostingType
impl Eq for HostingType
impl StructuralPartialEq for HostingType
Auto Trait Implementations§
impl Freeze for HostingType
impl RefUnwindSafe for HostingType
impl Send for HostingType
impl Sync for HostingType
impl Unpin for HostingType
impl UnwindSafe for HostingType
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> 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