Crate debbugs

Crate debbugs 

Source
Expand description

Rust client interface for the Debian Bug Tracking System (Debbugs)

This crate provides both async and blocking interfaces to interact with Debbugs instances, allowing you to search for bugs, retrieve bug reports, and access detailed bug information.

§Features

  • blocking (default): Enables the synchronous debbugs::blocking::Debbugs client
  • tokio (default): Enables the asynchronous debbugs::Debbugs client
  • mailparse (default): Enables parsing of email headers in bug logs

§Examples

§Async Interface

use debbugs::Debbugs;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Debbugs::default();
    let bugs = client.newest_bugs(10).await?;
    println!("Latest bugs: {:?}", bugs);
    Ok(())
}

§Blocking Interface

use debbugs::blocking::Debbugs;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Debbugs::default();
    let bugs = client.newest_bugs(10)?;
    println!("Latest bugs: {:?}", bugs);
    Ok(())
}

See the Debian Debbugs SOAP Interface documentation for more information about the underlying API.

Modules§

blocking

Structs§

BugLog
A log entry (email message) from a bug’s communication history
BugReport
Detailed information about a bug report
Debbugs
Async client for the Debian Bug Tracking System (Debbugs)
SearchQuery
Search criteria for finding bugs matching specific conditions

Enums§

Archived
Whether to search archived bugs
BugStatus
The status of a bug report
Error
Errors that can occur when interacting with the Debbugs API
Pending
The pending status of a bug report

Type Aliases§

BugId
A bug ID used to uniquely identify bugs in the tracking system
SoapResponse