pub struct AttachmentFile {
pub display_name: String,
pub line_range: Option<AttachmentFileLineRange>,
pub path: String,
pub type: AttachmentFileType,
}Expand description
File attachment
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§display_name: StringUser-facing display name for the attachment
line_range: Option<AttachmentFileLineRange>Optional line range to scope the attachment to a specific section of the file
path: StringAbsolute file path
type: AttachmentFileTypeAttachment type discriminator
Trait Implementations§
Source§impl Clone for AttachmentFile
impl Clone for AttachmentFile
Source§fn clone(&self) -> AttachmentFile
fn clone(&self) -> AttachmentFile
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 AttachmentFile
impl Debug for AttachmentFile
Source§impl Default for AttachmentFile
impl Default for AttachmentFile
Source§fn default() -> AttachmentFile
fn default() -> AttachmentFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentFile
impl<'de> Deserialize<'de> for AttachmentFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AttachmentFile
impl RefUnwindSafe for AttachmentFile
impl Send for AttachmentFile
impl Sync for AttachmentFile
impl Unpin for AttachmentFile
impl UnsafeUnpin for AttachmentFile
impl UnwindSafe for AttachmentFile
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