pub struct AttachmentCreateInput {
pub id: Option<String>,
pub title: Option<String>,
pub subtitle: Option<String>,
pub url: Option<String>,
pub issue_id: Option<String>,
pub icon_url: Option<String>,
pub metadata: Option<Value>,
pub group_by_source: Option<bool>,
pub comment_body: Option<String>,
pub comment_body_data: Option<Value>,
pub create_as_user: Option<String>,
}Fields§
§id: Option<String>The identifier in UUID v4 format. If none is provided, the backend will generate one.
title: Option<String>The attachment title.
subtitle: Option<String>The attachment subtitle.
url: Option<String>Attachment location which is also used as an unique identifier for the attachment. If another attachment is created with the same url value, existing record is updated instead.
issue_id: Option<String>The issue to associate the attachment with. Can be a UUID or issue identifier (e.g., ‘LIN-123’).
icon_url: Option<String>An icon url to display with the attachment. Should be of jpg or png format. Maximum of 1MB in size. Dimensions should be 20x20px for optimal display quality.
metadata: Option<Value>Attachment metadata object with string and number values.
group_by_source: Option<bool>Indicates if attachments for the same source application should be grouped in the Linear UI.
comment_body: Option<String>Create a linked comment with markdown body.
comment_body_data: Option<Value>Internal Create a linked comment with Prosemirror body. Please use commentBody instead.
create_as_user: Option<String>Create attachment as a user with the provided name. This option is only available to OAuth applications creating attachments in actor=application mode.
Trait Implementations§
Source§impl Clone for AttachmentCreateInput
impl Clone for AttachmentCreateInput
Source§fn clone(&self) -> AttachmentCreateInput
fn clone(&self) -> AttachmentCreateInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more