#[non_exhaustive]pub struct CommentCreateInput {
pub issue_id: String,
pub body: String,
pub parent_id: Option<CommentId>,
pub create_as_user: Option<String>,
}Expand description
Input for CommentsService::create (commentCreate).
use linear_api::comments::CommentCreateInput;
let input = CommentCreateInput::builder()
.issue_id("ENG-123")
.body("Deployed to staging.".to_owned())
.build();
assert_eq!(input.issue_id, "ENG-123");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.issue_id: StringThe issue to comment on. Pass IssueId.to_string() or an "ENG-123"
identifier string; the UUID is the safest form.
body: StringThe comment content, in markdown.
parent_id: Option<CommentId>Parent comment to nest this comment under (threading).
create_as_user: Option<String>Attribution label for bot-style comments: create the comment as a
user with this name (only honored for OAuth apps in actor=app mode).
Implementations§
Source§impl CommentCreateInput
impl CommentCreateInput
Sourcepub fn builder() -> CommentCreateInputBuilder
pub fn builder() -> CommentCreateInputBuilder
Create an instance of CommentCreateInput using the builder syntax
Trait Implementations§
Source§impl Clone for CommentCreateInput
impl Clone for CommentCreateInput
Source§fn clone(&self) -> CommentCreateInput
fn clone(&self) -> CommentCreateInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommentCreateInput
impl Debug for CommentCreateInput
Auto Trait Implementations§
impl Freeze for CommentCreateInput
impl RefUnwindSafe for CommentCreateInput
impl Send for CommentCreateInput
impl Sync for CommentCreateInput
impl Unpin for CommentCreateInput
impl UnsafeUnpin for CommentCreateInput
impl UnwindSafe for CommentCreateInput
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