pub struct GhForge { /* private fields */ }Expand description
GitHub, through gh.
Implementations§
Trait Implementations§
Source§impl Forge for GhForge
impl Forge for GhForge
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 GhForge
impl RefUnwindSafe for GhForge
impl Send for GhForge
impl Sync for GhForge
impl Unpin for GhForge
impl UnsafeUnpin for GhForge
impl UnwindSafe for GhForge
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