pub enum AttributionTarget {
LineRange {
path: String,
start: u32,
end: u32,
},
WholeFile {
path: String,
},
CommitSha {
sha: String,
},
}Variants§
LineRange
A specific line range within a file.
WholeFile
The whole file — used when a precise range could not be determined
(e.g. an Edit whose location couldn’t be located in the file content).
Replaces the former LineRange { start: 1, end: u32::MAX } sentinel.
CommitSha
Trait Implementations§
Source§impl Clone for AttributionTarget
impl Clone for AttributionTarget
Source§fn clone(&self) -> AttributionTarget
fn clone(&self) -> AttributionTarget
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 AttributionTarget
impl Debug for AttributionTarget
Source§impl<'de> Deserialize<'de> for AttributionTarget
impl<'de> Deserialize<'de> for AttributionTarget
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 AttributionTarget
impl RefUnwindSafe for AttributionTarget
impl Send for AttributionTarget
impl Sync for AttributionTarget
impl Unpin for AttributionTarget
impl UnsafeUnpin for AttributionTarget
impl UnwindSafe for AttributionTarget
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