pub struct PositionHookAttrs {
pub base_sha: String,
pub head_sha: String,
pub start_sha: String,
pub old_line: Option<u64>,
pub old_path: String,
pub new_line: Option<u64>,
pub new_path: String,
}👎Deprecated since 0.1705.1: stable hook APIs are not feasible
Fields§
§base_sha: String👎Deprecated since 0.1705.1: stable hook APIs are not feasible
§head_sha: String👎Deprecated since 0.1705.1: stable hook APIs are not feasible
§start_sha: String👎Deprecated since 0.1705.1: stable hook APIs are not feasible
§old_line: Option<u64>👎Deprecated since 0.1705.1: stable hook APIs are not feasible
§old_path: String👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The path on the old side of the diff.
new_line: Option<u64>👎Deprecated since 0.1705.1: stable hook APIs are not feasible
§new_path: String👎Deprecated since 0.1705.1: stable hook APIs are not feasible
The path on the new side of the diff.
Trait Implementations§
Source§impl Clone for PositionHookAttrs
impl Clone for PositionHookAttrs
Source§fn clone(&self) -> PositionHookAttrs
fn clone(&self) -> PositionHookAttrs
Returns a copy 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 PositionHookAttrs
impl Debug for PositionHookAttrs
Source§impl<'de> Deserialize<'de> for PositionHookAttrs
impl<'de> Deserialize<'de> for PositionHookAttrs
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 PositionHookAttrs
impl RefUnwindSafe for PositionHookAttrs
impl Send for PositionHookAttrs
impl Sync for PositionHookAttrs
impl Unpin for PositionHookAttrs
impl UnwindSafe for PositionHookAttrs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more