pub struct Pillars(/* private fields */);Expand description
An object for searching across projects, project groups, and distros.
Projects, project groups, and distributions are collectively known as “pillars”. This object lets you do a combined search across all types of pillars. It also gives you access to pillars that have been flagged by administrators as “featured” pillars.
Implementations§
Source§impl Pillars
impl Pillars
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: &PillarsFull,
) -> Result<(), Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &PillarsFull, ) -> Result<(), Error>
Update the resource.
Sourcepub fn patch<'a>(
&self,
client: &'a dyn Client,
representation: &PillarsDiff,
) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &PillarsDiff, ) -> Result<(), Error>
Partially update the resource.
Sourcepub fn search<'a>(
&self,
client: &'a dyn Client,
text: &str,
limit: Option<&str>,
) -> Result<PagedCollection<'a, PillarPage>, Error>
pub fn search<'a>( &self, client: &'a dyn Client, text: &str, limit: Option<&str>, ) -> Result<PagedCollection<'a, PillarPage>, Error>
Return Projects/Project groups/Distros matching :text:.
If :limit: is None, the default batch size will be used.
The results are ordered descending by rank.
§Arguments
text: Search textlimit: Maximum number of items to return. This is a hard limit: any pagination you request will happen within this limit.
§Returns
Returns crate::blocking::page::PagedCollection<'a, PillarPage> on success, or an error if the request fails.