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.
Sourcepub fn supports_review_comments_preview(self) -> bool
pub fn supports_review_comments_preview(self) -> bool
Returns whether Agentty can fetch inline review-thread comments for this forge.
GitLab merge-request comment sync is not implemented yet, so callers must skip comment-thread fetches and the read-only comments preview for non-GitHub forges until a native adapter lands.
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