pub enum ForgeKind {
GitHub,
GitLab,
}Expand description
Shared forge family enum reused by persistence and forge adapters.
Variants§
Implementations§
Source§impl ForgeKind
impl ForgeKind
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
Returns the user-facing forge name.
Sourcepub fn auth_login_command(self) -> &'static str
pub fn auth_login_command(self) -> &'static str
Returns the login command users should run to authorize forge access.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the persisted string representation for this forge kind.
Sourcepub fn review_request_name(self) -> &'static str
pub fn review_request_name(self) -> &'static str
Returns the forge-native review-request noun shown in user-facing copy.
Sourcepub fn review_request_display_name(self) -> String
pub fn review_request_display_name(self) -> String
Returns the combined forge and review-request name for user-facing copy.
Sourcepub fn review_request_short_name(self) -> &'static str
pub fn review_request_short_name(self) -> &'static str
Returns the short UI indicator label for one review request.
Trait Implementations§
impl Copy for ForgeKind
impl Eq for ForgeKind
impl StructuralPartialEq for ForgeKind
Auto Trait Implementations§
impl Freeze for ForgeKind
impl RefUnwindSafe for ForgeKind
impl Send for ForgeKind
impl Sync for ForgeKind
impl Unpin for ForgeKind
impl UnsafeUnpin for ForgeKind
impl UnwindSafe for ForgeKind
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