pub struct Location {
pub file_path: Option<String>,
pub file_position: Option<i64>,
pub relative_file_version: Option<String>,
}Expand description
Returns information about the location of a change or comment in the comparison between two commits or a pull request.
Fields§
§file_path: Option<String>The name of the file being compared, including its extension and subdirectory, if any.
file_position: Option<i64>The position of a change in a compared file, in line number format.
relative_file_version: Option<String>In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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