Struct gitlab::types::NotePosition
source · 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>,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
When a note is against a diff, the position of the note
Fields§
§base_sha: ObjectId
👎Deprecated since 0.1609.0: define deserialization types in client code
Base commit in the source branch
start_sha: ObjectId
👎Deprecated since 0.1609.0: define deserialization types in client code
SHA referencing the commit in the target branch
head_sha: ObjectId
👎Deprecated since 0.1609.0: define deserialization types in client code
The HEAD of the merge request
position_type: NotePositionType
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether this note is against text or image FIXME: image not supported yet.
old_path: String
👎Deprecated since 0.1609.0: define deserialization types in client code
File path before change
new_path: String
👎Deprecated since 0.1609.0: define deserialization types in client code
File path after change
old_line: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
Line number before the change
new_line: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
Line number after the change
Trait Implementations§
source§impl Clone for NotePosition
impl Clone for NotePosition
source§fn clone(&self) -> NotePosition
fn clone(&self) -> NotePosition
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 NotePosition
impl Debug for NotePosition
source§impl<'de> Deserialize<'de> for NotePosition
impl<'de> Deserialize<'de> for NotePosition
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 NotePosition
impl RefUnwindSafe for NotePosition
impl Send for NotePosition
impl Sync for NotePosition
impl Unpin for NotePosition
impl UnwindSafe for NotePosition
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