[][src]Struct gitlab::api::projects::merge_requests::discussions::PositionBuilder

pub struct PositionBuilder<'a> { /* fields omitted */ }

Builder for Position.

Implementations

impl<'a> PositionBuilder<'a>[src]

pub fn base_sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

Tbe base commit SHA in the source branch.

pub fn start_sha<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Tbe base commit SHA in the target branch.

pub fn head_sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

Tbe commit SHA for the HEAD of the merge request.

pub fn build(&self) -> Result<Position<'a>, String>[src]

Builds a new Position.

Errors

If a required field has not been initialized.

impl<'a> PositionBuilder<'a>[src]

pub fn text_position(&mut self, position: TextPosition<'a>) -> &mut Self[src]

The position within a text file.

pub fn image_position(&mut self, position: ImagePosition) -> &mut Self[src]

The position within an image file.

Trait Implementations

impl<'a> Clone for PositionBuilder<'a>[src]

impl<'a> Default for PositionBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for PositionBuilder<'a>

impl<'a> Send for PositionBuilder<'a>

impl<'a> Sync for PositionBuilder<'a>

impl<'a> Unpin for PositionBuilder<'a>

impl<'a> UnwindSafe for PositionBuilder<'a>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.