Struct gitlab::webhooks::PositionHookAttrs
source · pub struct PositionHookAttrs {
pub base_sha: ObjectId,
pub head_sha: ObjectId,
pub start_sha: ObjectId,
pub old_line: Option<u64>,
pub old_path: String,
pub new_line: Option<u64>,
pub new_path: String,
}
Fields§
§base_sha: ObjectId
§head_sha: ObjectId
§start_sha: ObjectId
§old_line: Option<u64>
§old_path: String
The path on the old side of the diff.
new_line: Option<u64>
§new_path: String
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