Struct octocrab::commits::CreateCommentBuilder
source · pub struct CreateCommentBuilder<'octo, 'r> { /* private fields */ }
Implementations§
source§impl<'octo, 'r> CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> CreateCommentBuilder<'octo, 'r>
sourcepub fn path<A: Into<String>>(self, path: impl Into<Option<A>>) -> Self
pub fn path<A: Into<String>>(self, path: impl Into<Option<A>>) -> Self
Relative path of the file to comment on.
Required if you provide position.
For example, if you want to comment on a line in the file
lib/octocat.rb
, you would provide lib/octocat.rb
.
pub fn position(self, position: impl Into<Option<u64>>) -> Self
pub fn line(self, line: impl Into<Option<u64>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'octo, 'r> Freeze for CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> !RefUnwindSafe for CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> Send for CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> Sync for CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> Unpin for CreateCommentBuilder<'octo, 'r>
impl<'octo, 'r> !UnwindSafe for CreateCommentBuilder<'octo, 'r>
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