[][src]Struct bodhi::data::Update

pub struct Update {
    pub alias: String,
    pub autokarma: bool,
    pub autotime: bool,
    pub bugs: Vec<Bug>,
    pub builds: Vec<Build>,
    pub close_bugs: bool,
    pub comments: Option<Vec<Comment>>,
    pub compose: Option<Compose>,
    pub content_type: Option<ContentType>,
    pub critpath: bool,
    pub date_approved: Option<BodhiDate>,
    pub date_modified: Option<BodhiDate>,
    pub date_pushed: Option<BodhiDate>,
    pub date_stable: Option<BodhiDate>,
    pub date_submitted: Option<BodhiDate>,
    pub date_testing: Option<BodhiDate>,
    pub display_name: String,
    pub from_tag: Option<String>,
    pub karma: Option<i32>,
    pub locked: bool,
    pub meets_testing_requirements: bool,
    pub notes: String,
    pub pushed: bool,
    pub release: Release,
    pub request: Option<UpdateRequest>,
    pub require_bugs: bool,
    pub require_testcases: bool,
    pub requirements: Option<String>,
    pub severity: UpdateSeverity,
    pub stable_days: Option<u32>,
    pub stable_karma: Option<i32>,
    pub status: UpdateStatus,
    pub suggest: UpdateSuggestion,
    pub test_cases: Option<Vec<TestCase>>,
    pub test_gating_status: Option<TestGatingStatus>,
    pub title: String,
    pub unstable_karma: Option<i32>,
    pub update_type: UpdateType,
    pub url: String,
    pub user: User,
    pub version_hash: String,
    pub extra: HashMap<String, Value>,
    // some fields omitted
}

This struct represents a bodhi update, with associated items: bugs, builds, comments, release, status, submitter, etc.

Fields

alias: String

user-visible, human-readable update alias (FEDORA-2019-1A2BB23E)

autokarma: bool

flag to indicate whether this update can be pushed to stable automatically based on karma

autotime: bool

flag to indicate whether this update can be pushed to stable automatically based on time

bugs: Vec<Bug>

bugs associated with this update

builds: Vec<Build>

builds associated with this update

close_bugs: bool

flag to indicate whether bugs will be closed when this update is pushed to stable

comments: Option<Vec<Comment>>

list of comments associated with this update

compose: Option<Compose>

compose this update is currently part of

content_type: Option<ContentType>

content type of this update (RPM, Module, Flatpak, Container)

critpath: bool

flag to indicate whether this update contains packages from the "critical path"

date_approved: Option<BodhiDate>

date & time when this update has last been approved

date_modified: Option<BodhiDate>

date & time when this update has last been modified

date_pushed: Option<BodhiDate>

date & time when this update has last been pushed

date_stable: Option<BodhiDate>

date & time when this update has last been pushed to stable

date_submitted: Option<BodhiDate>

date & time when this update has last been submitted

date_testing: Option<BodhiDate>

date & time when this update has last been pushed to testing

display_name: String

displayed name of this update

from_tag: Option<String>

side tag this update was created from

karma: Option<i32>

current karma total

locked: bool

flag indicating whether this update can be edited

meets_testing_requirements: bool

flag indicating whether the update satisfies requirements

notes: String

public notes associated with this update

pushed: bool

flag indicating whether this update has already been pushed

release: Release

release this update was submitted for

request: Option<UpdateRequest>

currently requested new update status

require_bugs: bool

flag to specify whether feedback for bugs is required when counting karma

require_testcases: bool

flag to specify whether feedback for test cases is required when counting karma

requirements: Option<String>

comma- or space-separated list of required taskotron test results

severity: UpdateSeverity

severity of this update

stable_days: Option<u32>

minimum of days this update has to stay in testing

stable_karma: Option<i32>

stable karma threshold set for this update

status: UpdateStatus

current status of this update

suggest: UpdateSuggestion

suggested action to take after installing this update

test_cases: Option<Vec<TestCase>>

list test cases associated with this update

test_gating_status: Option<TestGatingStatus>

greenwave gating status; one of: failed, greenwave_failed, ignored, passed, waiting If this value is None, greenwave was not yet enabled when this update was created.

title: String

title of this update (automatically computed from build NVRs if display_name is not set)

unstable_karma: Option<i32>

unstable karma threshold set for this update

update_type: UpdateType

type of this update

url: String

public URL of this update

user: User

user who created this update

version_hash: String

SHA-1 hash of the sorted, space-separated NVRs of the included builds

extra: HashMap<String, Value>

catch-all for fields that are not explicitly deserialized

Methods

impl Update[src]

pub fn comment(&self) -> CommentBuilder[src]

This method creates a new CommentBuilder for commenting on this Update.

impl Update[src]

pub fn edit(&self) -> UpdateEditor[src]

This method creates a new UpdateEditor for editing this Update.

pub fn request(&self, request: UpdateRequest) -> UpdateStatusRequester[src]

This method creates a new UpdateStatusRequester for editing this Update.

pub fn waive<'a>(&'a self, comment: &'a str) -> UpdateTestResultWaiver<'a>[src]

This method creates a new UpdateTestResultWaiver for editing this Update.

Trait Implementations

impl Debug for Update[src]

impl<'de> Deserialize<'de> for Update[src]

impl Display for Update[src]

impl Serialize for Update[src]

Auto Trait Implementations

impl RefUnwindSafe for Update

impl Send for Update

impl Sync for Update

impl Unpin for Update

impl UnwindSafe for Update

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,