pub struct Languages(/* private fields */);Expand description
The collection of languages.
The standard get method will return only the visible languages. If you want to access all languages known to Launchpad, use the getAllLanguages method.
Implementations§
Source§impl Languages
impl Languages
Sourcepub fn iter<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, LanguagePage>, Error>
pub fn iter<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, LanguagePage>, Error>
Get a paged collection of LanguagePage.
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 get_all_languages<'a>(
&self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, LanguagePage>, Error>
pub fn get_all_languages<'a>( &self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, LanguagePage>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Languages
impl RefUnwindSafe for Languages
impl Send for Languages
impl Sync for Languages
impl Unpin for Languages
impl UnwindSafe for Languages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more