[][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

BodhiError

This struct contains error messages that are deserialized from bodhi's error responses. TODO: make this a proper error

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. This does not include "rpm" or "module" builds for rawhide (yet).

Comment

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

Group

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

Override

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

Package

This struct represents a specific fedora package.

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.

Stack

This struct represents a specific stack in bodhi. It doesn't seem to be in use yet.

TestCase

This struct represents a specific test case as associated with a given test case feedback and update.

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. FIXME: old_updateid and updateid are either Strings (aliases) or i32s (IDs), depending on the query

User

This struct represents a specific fedora user.

Enums

ContentType

This enum represents the content type of a bodhi update.

UpdateRequest

This enum represents a requested state change of an update.

UpdateSeverity

This enum represents the associated severity of a bodhi update.

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

FEDORA_BODHI_STAGING_URL

base URL of the fedora bodhi staging instance

FEDORA_BODHI_URL

base URL of the fedora bodhi instance