[][src]Struct gitlab::types::NotePosition

pub struct NotePosition {
    pub base_sha: ObjectId,
    pub start_sha: ObjectId,
    pub head_sha: ObjectId,
    pub position_type: NotePositionType,
    pub old_path: String,
    pub new_path: String,
    pub old_line: Option<u64>,
    pub new_line: Option<u64>,
}

When a note is against a diff, the position of the note

Fields

base_sha: ObjectId

Base commit in the source branch

start_sha: ObjectId

SHA referencing the commit in the target branch

head_sha: ObjectId

The HEAD of the merge request

position_type: NotePositionType

Whether this note is against text or image FIXME: image not supported yet.

old_path: String

File path before change

new_path: String

File path after change

old_line: Option<u64>

Line number before the change

new_line: Option<u64>

Line number after the change

Trait Implementations

impl Clone for NotePosition[src]

impl Debug for NotePosition[src]

impl Serialize for NotePosition[src]

impl<'de> Deserialize<'de> for NotePosition[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err