[][src]Module bodhi::query::comments

The contents of this module can be used to query a bodhi instance about existing comments.

The CommentIDQuery returns exactly one Comment, if and only if a Comment with the given integer ID exists - otherwise, it will return an error.

The CommentQuery can be used to execute more complex queries, for example filtering comments that are associated with a set of updates or packages, or query comments made by certain users, or filed against updates that were created by specific users.

Structs

CommentIDQuery

Use this for querying bodhi for a specific comment by its ID. It will either return an Ok(Some(Comment)) matching the specified ID, return Ok(None) if it doesn't exist, or return an Err(QueryError) if another error occurred.

CommentQuery

Use this for querying bodhi about a set of comments with the given properties, which can be specified with the builder pattern. Note that some options can be specified multiple times, and comments will be returned if any criteria match. This is consistent with both the web interface and REST API behavior.