pub struct PushAttachmentFile {
pub display_name: String,
pub line_range: Option<PushAttachmentFileLineRange>,
pub path: String,
pub type: PushAttachmentFileType,
}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<PushAttachmentFileLineRange>Optional line range to scope the attachment to a specific section of the file
path: StringAbsolute file path
type: PushAttachmentFileTypeAttachment type discriminator
Trait Implementations§
Source§impl Clone for PushAttachmentFile
impl Clone for PushAttachmentFile
Source§fn clone(&self) -> PushAttachmentFile
fn clone(&self) -> PushAttachmentFile
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 PushAttachmentFile
impl Debug for PushAttachmentFile
Source§impl Default for PushAttachmentFile
impl Default for PushAttachmentFile
Source§fn default() -> PushAttachmentFile
fn default() -> PushAttachmentFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushAttachmentFile
impl<'de> Deserialize<'de> for PushAttachmentFile
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 PushAttachmentFile
impl RefUnwindSafe for PushAttachmentFile
impl Send for PushAttachmentFile
impl Sync for PushAttachmentFile
impl Unpin for PushAttachmentFile
impl UnsafeUnpin for PushAttachmentFile
impl UnwindSafe for PushAttachmentFile
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