pub struct SelectionAttachment {
pub file_path: String,
pub display_name: String,
pub selection: Option<SelectionRange>,
pub text: Option<String>,
}Expand description
Attachment for a code selection.
Fields§
§file_path: String§display_name: String§selection: Option<SelectionRange>§text: Option<String>Trait Implementations§
Source§impl Clone for SelectionAttachment
impl Clone for SelectionAttachment
Source§fn clone(&self) -> SelectionAttachment
fn clone(&self) -> SelectionAttachment
Returns a duplicate of the value. Read more
1.0.0 · 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 SelectionAttachment
impl Debug for SelectionAttachment
Source§impl<'de> Deserialize<'de> for SelectionAttachment
impl<'de> Deserialize<'de> for SelectionAttachment
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 SelectionAttachment
impl RefUnwindSafe for SelectionAttachment
impl Send for SelectionAttachment
impl Sync for SelectionAttachment
impl Unpin for SelectionAttachment
impl UnwindSafe for SelectionAttachment
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