pub struct AttachmentGitHubSnippet {
pub line_range: AttachmentFileLineRange,
pub path: String,
pub ref: String,
pub repo: GitHubRepoRef,
pub type: AttachmentGitHubSnippetType,
pub url: String,
}Expand description
Pointer to a line range inside a file in a GitHub repository.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§line_range: AttachmentFileLineRangeLine range the snippet covers
path: StringRepository-relative path to the file
ref: StringGit ref the file is read at (branch, tag, or commit SHA)
repo: GitHubRepoRefRepository the file lives in
type: AttachmentGitHubSnippetTypeAttachment type discriminator
url: StringURL to the snippet on GitHub (with line anchor)
Trait Implementations§
Source§impl Clone for AttachmentGitHubSnippet
impl Clone for AttachmentGitHubSnippet
Source§fn clone(&self) -> AttachmentGitHubSnippet
fn clone(&self) -> AttachmentGitHubSnippet
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 AttachmentGitHubSnippet
impl Debug for AttachmentGitHubSnippet
Source§impl Default for AttachmentGitHubSnippet
impl Default for AttachmentGitHubSnippet
Source§fn default() -> AttachmentGitHubSnippet
fn default() -> AttachmentGitHubSnippet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentGitHubSnippet
impl<'de> Deserialize<'de> for AttachmentGitHubSnippet
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 AttachmentGitHubSnippet
impl RefUnwindSafe for AttachmentGitHubSnippet
impl Send for AttachmentGitHubSnippet
impl Sync for AttachmentGitHubSnippet
impl Unpin for AttachmentGitHubSnippet
impl UnsafeUnpin for AttachmentGitHubSnippet
impl UnwindSafe for AttachmentGitHubSnippet
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