pub enum ForgeDialect {
Github,
Gitlab,
Gitea,
}Expand description
The same-repository URL dialect a run applies: named in the report’s evaluation and selecting the recognition grammar in the resolver.
Variants§
Implementations§
Source§impl ForgeDialect
impl ForgeDialect
Sourcepub fn all() -> impl ExactSizeIterator<Item = Self>
pub fn all() -> impl ExactSizeIterator<Item = Self>
Every supported URL dialect in wire-contract order.
pub fn as_str(self) -> &'static str
Sourcepub fn default_for_host(host: &str) -> Option<Self>
pub fn default_for_host(host: &str) -> Option<Self>
The known-host default table; an explicit flag always wins over it.
Trait Implementations§
Source§impl Clone for ForgeDialect
impl Clone for ForgeDialect
Source§fn clone(&self) -> ForgeDialect
fn clone(&self) -> ForgeDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ForgeDialect
Source§impl Debug for ForgeDialect
impl Debug for ForgeDialect
impl Eq for ForgeDialect
Source§impl<'_derivative_strum> From<&'_derivative_strum ForgeDialect> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ForgeDialect> for &'static str
Source§fn from(x: &'_derivative_strum ForgeDialect) -> &'static str
fn from(x: &'_derivative_strum ForgeDialect) -> &'static str
Converts to this type from the input type.
Source§impl From<ForgeDialect> for &'static str
impl From<ForgeDialect> for &'static str
Source§fn from(x: ForgeDialect) -> &'static str
fn from(x: ForgeDialect) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for ForgeDialect
impl FromStr for ForgeDialect
Source§impl IntoEnumIterator for ForgeDialect
impl IntoEnumIterator for ForgeDialect
type Iterator = ForgeDialectIter
fn iter() -> ForgeDialectIter ⓘ
Source§impl PartialEq for ForgeDialect
impl PartialEq for ForgeDialect
impl StructuralPartialEq for ForgeDialect
Auto Trait Implementations§
impl Freeze for ForgeDialect
impl RefUnwindSafe for ForgeDialect
impl Send for ForgeDialect
impl Sync for ForgeDialect
impl Unpin for ForgeDialect
impl UnsafeUnpin for ForgeDialect
impl UnwindSafe for ForgeDialect
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