pub struct EditCommentBuilder { /* private fields */ }
Implementations§
Source§impl EditCommentBuilder
impl EditCommentBuilder
pub fn updated_at(self, updated_at: String) -> Self
Source§impl EditCommentBuilder
impl EditCommentBuilder
pub fn new( owner: impl ToString, repo: impl ToString, comment: i64, body: impl ToString, ) -> Self
Sourcepub async fn send(self, client: &Client) -> Result<Option<Comment>>
pub async fn send(self, client: &Client) -> Result<Option<Comment>>
Sends the request to edit a comment on an issue. NOTE: This is the only endpoint which returns an option. That’s because the Gitea API decided - in their infinite wisdom - to sometimes return a 204 No Content status code when editing a comment, which means there’s no response body to parse.
Trait Implementations§
Source§impl Clone for EditCommentBuilder
impl Clone for EditCommentBuilder
Source§fn clone(&self) -> EditCommentBuilder
fn clone(&self) -> EditCommentBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EditCommentBuilder
impl Debug for EditCommentBuilder
Auto Trait Implementations§
impl Freeze for EditCommentBuilder
impl RefUnwindSafe for EditCommentBuilder
impl Send for EditCommentBuilder
impl Sync for EditCommentBuilder
impl Unpin for EditCommentBuilder
impl UnwindSafe for EditCommentBuilder
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