pub struct GlabForge { /* private fields */ }Expand description
GitLab, through glab.
:id in an endpoint is the tool’s own placeholder for the project of the
current directory, so no path here spells the project out.
Implementations§
Trait Implementations§
Source§impl Forge for GlabForge
impl Forge for GlabForge
fn kind(&self) -> ForgeKind
Source§fn whoami(&self) -> Result<String, ForgeError>
fn whoami(&self) -> Result<String, ForgeError>
The login the tool is signed in as. A comment by this author is the
reader’s, marker or not.
Source§fn request(&self, id: Option<&str>) -> Result<Request, ForgeError>
fn request(&self, id: Option<&str>) -> Result<Request, ForgeError>
The request with this id, or the current branch’s when
None.Source§fn threads(&self, req: &Request) -> Result<Vec<RemoteThread>, ForgeError>
fn threads(&self, req: &Request) -> Result<Vec<RemoteThread>, ForgeError>
Every review thread on the request, unplaced (
anchor: None).Source§fn publish(&self, req: &Request, batch: &Batch) -> Result<Sent, ForgeError>
fn publish(&self, req: &Request, batch: &Batch) -> Result<Sent, ForgeError>
Send one batch. Comments against
req.head; the caller has already
checked that is the review’s head. Err only while nothing has left
the machine; after that, Ok(Sent) with a failed.fn set_resolved( &self, req: &Request, thread: &str, resolved: bool, ) -> Result<(), ForgeError>
Source§fn edit_comment(
&self,
req: &Request,
thread: &str,
comment: &str,
body: &str,
) -> Result<(), ForgeError>
fn edit_comment( &self, req: &Request, thread: &str, comment: &str, body: &str, ) -> Result<(), ForgeError>
Rewrite a comment this reader published. The body arrives with its
marker, as it was sent.
Source§fn delete_comment(
&self,
req: &Request,
thread: &str,
comment: &str,
) -> Result<(), ForgeError>
fn delete_comment( &self, req: &Request, thread: &str, comment: &str, ) -> Result<(), ForgeError>
Remove a comment this reader published.
Auto Trait Implementations§
impl Freeze for GlabForge
impl RefUnwindSafe for GlabForge
impl Send for GlabForge
impl Sync for GlabForge
impl Unpin for GlabForge
impl UnsafeUnpin for GlabForge
impl UnwindSafe for GlabForge
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