pub struct PushAttachmentGitHubSnippet {
pub line_range: PushAttachmentFileLineRange,
pub path: String,
pub ref: String,
pub repo: PushGitHubRepoRef,
pub type: PushAttachmentGitHubSnippetType,
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: PushAttachmentFileLineRangeLine 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: PushGitHubRepoRefRepository the file lives in
type: PushAttachmentGitHubSnippetTypeAttachment type discriminator
url: StringURL to the snippet on GitHub (with line anchor)
Trait Implementations§
Source§impl Clone for PushAttachmentGitHubSnippet
impl Clone for PushAttachmentGitHubSnippet
Source§fn clone(&self) -> PushAttachmentGitHubSnippet
fn clone(&self) -> PushAttachmentGitHubSnippet
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 PushAttachmentGitHubSnippet
impl Debug for PushAttachmentGitHubSnippet
Source§impl Default for PushAttachmentGitHubSnippet
impl Default for PushAttachmentGitHubSnippet
Source§fn default() -> PushAttachmentGitHubSnippet
fn default() -> PushAttachmentGitHubSnippet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushAttachmentGitHubSnippet
impl<'de> Deserialize<'de> for PushAttachmentGitHubSnippet
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 PushAttachmentGitHubSnippet
impl RefUnwindSafe for PushAttachmentGitHubSnippet
impl Send for PushAttachmentGitHubSnippet
impl Sync for PushAttachmentGitHubSnippet
impl Unpin for PushAttachmentGitHubSnippet
impl UnsafeUnpin for PushAttachmentGitHubSnippet
impl UnwindSafe for PushAttachmentGitHubSnippet
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