Skip to main content

ViewVersionBuilder

Struct ViewVersionBuilder 

Source
pub struct ViewVersionBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> ViewVersionBuilder<S>

Source

pub fn build(self) -> ViewVersion
where S: IsComplete,

Finish building and return the requested object

Source

pub fn changelog(self, value: String) -> ViewVersionBuilder<SetChangelog<S>>
where S::Changelog: IsUnset,

Required.

Changelog text for this version, as Markdown.

Source

pub fn id(self, value: Uuid) -> ViewVersionBuilder<SetId<S>>
where S::Id: IsUnset,

Required.

Unique identifier of the version.

Source

pub fn major(self, value: i32) -> ViewVersionBuilder<SetMajor<S>>
where S::Major: IsUnset,

Required.

Major version number.

Source

pub fn minor(self, value: i32) -> ViewVersionBuilder<SetMinor<S>>
where S::Minor: IsUnset,

Required.

Minor version number.

Source

pub fn patch(self, value: i32) -> ViewVersionBuilder<SetPatch<S>>
where S::Patch: IsUnset,

Required.

Patch version number.

Source

pub fn status(self, value: VersionStatus) -> ViewVersionBuilder<SetStatus<S>>
where S::Status: IsUnset,

Required.

Publication status: draft, published, or yanked.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.