[][src]Struct bodhi::create::UpdateBuilder

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

This struct contains all the values that are necessary for creating a new update. Methods to supply optional arguments are also available.

Methods

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

pub fn from_builds(builds: &'a [&str], notes: &'a str) -> Self[src]

Use this method when creating an update for a list of builds.

pub fn from_tag(tag: &'a str, notes: &'a str) -> Self[src]

Use this method when creating an update for a side tag.

pub fn bugs(self, bug: u32) -> Self[src]

Add a related bug to the update.

Can be specified multiple times.

pub fn title(self, title: String) -> Self[src]

Add a custom user-visible title to the update.

pub fn close_bugs(self, close_bugs: bool) -> Self[src]

Set the flag whether bugs will be closed when the update is pushed to stable.

pub fn update_type(self, update_type: UpdateType) -> Self[src]

Flag to specify the type of update (new package, bug fix, enhancement, security update, or unspecified). For security updates, the severity also has to be specified.

pub fn severity(self, severity: UpdateSeverity) -> Self[src]

Flag to specify the update severity (primarily used for security updates, where this flag is mandatory).

pub fn autokarma(self, autokarma: bool) -> Self[src]

Set the flag whether the update can automatically be pushed to stable once it reaches the specified stable karma.

pub fn stable_karma(self, stable_karma: i32) -> Self[src]

Manually set the stable karma feedback threshold.

pub fn unstable_karma(self, unstable_karma: i32) -> Self[src]

Manually set the unstable karma feedback threshold.

pub fn suggest(self, suggestion: UpdateSuggestion) -> Self[src]

Flag to specify whether users should log out or reboot to successfully apply an update.

pub fn requirements(self, requirements: String) -> Self[src]

Add custom taskotron requirements.

pub fn require_bugs(self, require_bugs: bool) -> Self[src]

Flag to indicate whether bug feedback is required for karma to be counted.

pub fn require_testcases(self, require_testcases: bool) -> Self[src]

Flag to indicate whether test case feedback is required for karma to be counted.

pub fn autotime(self, autotime: bool) -> Self[src]

Set the flag whether the update can automatically be pushed to stable once it reaches the specified days in testing.

pub fn stable_days(self, stable_days: u32) -> Self[src]

Manually specify the minimum duration the update has to stay in testing.

The default is 7 days for stable updates, 14 days for stable updates containing critpath packages, and 3 days for fedora pre-releases.

Trait Implementations

impl<'a> Debug for UpdateBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UpdateBuilder<'a>

impl<'a> Send for UpdateBuilder<'a>

impl<'a> Sync for UpdateBuilder<'a>

impl<'a> Unpin for UpdateBuilder<'a>

impl<'a> UnwindSafe for UpdateBuilder<'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, 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.