Struct gitlab::api::projects::merge_requests::discussions::TextPositionBuilder
source · pub struct TextPositionBuilder<'a> { /* private fields */ }
Expand description
Builder for TextPosition
.
Implementations§
source§impl<'a> TextPositionBuilder<'a>
impl<'a> TextPositionBuilder<'a>
sourcepub fn new_path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn new_path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the path for the new side of the diff.
sourcepub fn new_line(&mut self, value: u64) -> &mut Self
pub fn new_line(&mut self, value: u64) -> &mut Self
The line number for the new side of the diff.
sourcepub fn old_path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn old_path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the path for the old side of the diff.
sourcepub fn old_line(&mut self, value: u64) -> &mut Self
pub fn old_line(&mut self, value: u64) -> &mut Self
The line number for the old side of the diff.
sourcepub fn line_range(&mut self, value: LineRange<'a>) -> &mut Self
pub fn line_range(&mut self, value: LineRange<'a>) -> &mut Self
The range of lines to discuss.
sourcepub fn build(&self) -> Result<TextPosition<'a>, TextPositionBuilderError>
pub fn build(&self) -> Result<TextPosition<'a>, TextPositionBuilderError>
Trait Implementations§
source§impl<'a> Clone for TextPositionBuilder<'a>
impl<'a> Clone for TextPositionBuilder<'a>
source§fn clone(&self) -> TextPositionBuilder<'a>
fn clone(&self) -> TextPositionBuilder<'a>
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 more