pub struct BugNomination(/* private fields */);Expand description
A nomination for a bug to be fixed in a specific series.
A nomination can apply to an IDistroSeries or an IProductSeries.
Implementations§
Source§impl BugNomination
impl BugNomination
Sourcepub fn get<'a>(
&self,
client: &'a dyn Client,
) -> Result<BugNominationFull, Error>
pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<BugNominationFull, Error>
Retrieve the resource.
§Returns
Returns BugNominationFull on success, or an error if the request fails.
Sourcepub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
Retrieve the WADL description for this resource.
This method fetches the WADL (Web Application Description Language) specification for the current resource, allowing for runtime API discovery.
§Returns
Returns the wadl::ast::Resource definition on success, or an error if the request fails.
Sourcepub fn put<'a>(
&self,
client: &'a dyn Client,
representation: &BugNominationFull,
) -> Result<(), Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &BugNominationFull, ) -> Result<(), Error>
Update the resource.
Sourcepub fn patch<'a>(
&self,
client: &'a dyn Client,
representation: &BugNominationDiff,
) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &BugNominationDiff, ) -> Result<(), Error>
Partially update the resource.
Sourcepub fn can_approve<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
pub fn can_approve<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
Is this person allowed to approve the nomination?
§Arguments
Sourcepub fn approve<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
pub fn approve<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
Approve this bug for fixing in a series.
The status is set to APPROVED and the appropriate IBugTask(s) are created for the nomination target.
A nomination in any state can be approved. If the nomination is /already/ approved, this method is a noop.
§Arguments
Sourcepub fn decline<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
pub fn decline<'a>(&self, client: &'a dyn Client) -> Result<(), Error>
Decline this bug for fixing in a series.
The status is set to DECLINED.
If called on a nomination that is in APPROVED state, a BugNominationStatusError is raised. If the nomination was already DECLINED, this method is a noop.