[][src]Module bodhi::data

This module contains the data types that are needed to deserialize bodhi server responses which are also public outside this crate. Some internal data types for queries are implemented in the corresponding query module.

Additionally, the bodhi REST API has some arguments that accept Strings, but only from a limited set of enumerated values. To abstract this, the corresponding query filters accept some of the enum types defined here, instead of the String arguments directly.

Structs

BodhiDate

This struct wraps a chrono::DateTime<chrono::Utc> instance with implementations for converting to and from the string format that bodhi expects and returns for dates and times.

Bug

This struct represents a specific BugZilla bug that is associated with an update.

BugFeedback

This struct represents an update feedback item associated with a specific bug.

Build

This struct represents a specific koji build that bodhi is aware of.

Comment

This struct represents one comment against a specific update, along with its associated bug and test case feedback.

Compose

This struct represents a currently running compose.

Group

This struct represents a group from the fedora accounts system (FAS).

InvalidValueError

This error is returned when a string fails to be parsed into an enumerated value.

Override

This struct represents a buildroot override, along with the associated build.

Package

This struct represents a specific fedora package (or another distributable unit)

Release

This struct represents a fedora release as present in the bodhi database. This includes variants (Modular, Container, Flatpak), identified with the "C", "F", and "M" suffixes.

TestCase

This struct represents a specific test case as associated with a package.

TestCaseFeedback

This struct represents an update feedback item associated with a specific test case.

Update

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

UpdateSummary

This struct wraps the short update summaries that are included in running Composes.

User

This struct represents one fedora user that bodhi is aware of.

Enums

ComposeRequest

This enum represents the possible request values for composes.

ComposeStatus

This enum represents the possible status values for composes.

ContentType

This enum represents the type of a bodhi update, of a package, and of builds.

FedoraRelease

This enum represents a fedora release.

Karma

This enum represents a "Karma" value, which is either a positive (+1), neutral (±0), or negative (-1) feedback for an update, and is associated with a Comment, and possibly also a TestCaseFeedback or a BugFeedback.

PackageManager

This enum represents the name of the package manager that's in use on a release.

ReleaseState

This enum represents the state of a release.

TestGatingStatus

This enum represents the test gating status from greenwave.

UpdateRequest

This enum represents a requested state change of an update.

UpdateSeverity

This enum represents the associated severity of a bodhi update. This field is required to not be unspecified for updates with UpdateType::Security.

UpdateStatus

This enum represents the current state of a bodhi update.

UpdateSuggestion

This enum represents the associated suggested action for a bodhi update.

UpdateType

This enum represents the type of a bodhi update.

Constants

BODHI_DATETIME_FORMAT

human-readable date format internally used by bodhi

FEDORA_BODHI_STG_URL

base URL of the fedora bodhi staging instance

FEDORA_BODHI_URL

base URL of the fedora bodhi instance