pub struct MetadataClient<'a> { /* private fields */ }Expand description
Metadata API client for discovery endpoints.
Implementations§
Source§impl<'a> MetadataClient<'a>
impl<'a> MetadataClient<'a>
Sourcepub async fn list_projects(&self) -> Result<Vec<ProjectInfo>>
pub async fn list_projects(&self) -> Result<Vec<ProjectInfo>>
List all available projects.
Sourcepub async fn list_projects_with_params(
&self,
params: Option<&RequestParams>,
) -> Result<Vec<ProjectInfo>>
pub async fn list_projects_with_params( &self, params: Option<&RequestParams>, ) -> Result<Vec<ProjectInfo>>
List projects with filters and field selection.
Sourcepub async fn get_project(&self, identifier: &str) -> Result<ProjectInfo>
pub async fn get_project(&self, identifier: &str) -> Result<ProjectInfo>
Get specific project info.
Sourcepub async fn get_project_with_params(
&self,
identifier: &str,
params: Option<&RequestParams>,
) -> Result<ProjectInfo>
pub async fn get_project_with_params( &self, identifier: &str, params: Option<&RequestParams>, ) -> Result<ProjectInfo>
Get project info with field selection.
Sourcepub async fn list_languages(&self) -> Result<Vec<Language>>
pub async fn list_languages(&self) -> Result<Vec<Language>>
List all languages.
Sourcepub async fn list_languages_with_params(
&self,
params: Option<&RequestParams>,
) -> Result<Vec<Language>>
pub async fn list_languages_with_params( &self, params: Option<&RequestParams>, ) -> Result<Vec<Language>>
List languages with filters and field selection.
Sourcepub async fn get_language(&self, identifier: &str) -> Result<Language>
pub async fn get_language(&self, identifier: &str) -> Result<Language>
Get specific language info.
Sourcepub async fn get_language_with_params(
&self,
identifier: &str,
params: Option<&RequestParams>,
) -> Result<Language>
pub async fn get_language_with_params( &self, identifier: &str, params: Option<&RequestParams>, ) -> Result<Language>
Get language info with field selection.
Sourcepub async fn list_namespaces(&self) -> Result<Vec<Namespace>>
pub async fn list_namespaces(&self) -> Result<Vec<Namespace>>
List all namespaces.
Sourcepub async fn list_namespaces_with_params(
&self,
params: Option<&RequestParams>,
) -> Result<Vec<Namespace>>
pub async fn list_namespaces_with_params( &self, params: Option<&RequestParams>, ) -> Result<Vec<Namespace>>
List namespaces with filters and field selection.
Sourcepub async fn get_namespace(&self, identifier: u32) -> Result<Namespace>
pub async fn get_namespace(&self, identifier: u32) -> Result<Namespace>
Get specific namespace info.
Sourcepub async fn get_namespace_with_params(
&self,
identifier: u32,
params: Option<&RequestParams>,
) -> Result<Namespace>
pub async fn get_namespace_with_params( &self, identifier: u32, params: Option<&RequestParams>, ) -> Result<Namespace>
Get namespace info with field selection.
Sourcepub async fn list_project_codes(&self) -> Result<Vec<ProjectType>>
pub async fn list_project_codes(&self) -> Result<Vec<ProjectType>>
List project codes.
Sourcepub async fn list_project_codes_with_params(
&self,
params: Option<&RequestParams>,
) -> Result<Vec<ProjectType>>
pub async fn list_project_codes_with_params( &self, params: Option<&RequestParams>, ) -> Result<Vec<ProjectType>>
List project codes with filters and field selection.
Sourcepub async fn get_project_code(&self, identifier: &str) -> Result<ProjectType>
pub async fn get_project_code(&self, identifier: &str) -> Result<ProjectType>
Get specific project code info.
Sourcepub async fn get_project_code_with_params(
&self,
identifier: &str,
params: Option<&RequestParams>,
) -> Result<ProjectType>
pub async fn get_project_code_with_params( &self, identifier: &str, params: Option<&RequestParams>, ) -> Result<ProjectType>
Get project code info with field selection.
Auto Trait Implementations§
impl<'a> Freeze for MetadataClient<'a>
impl<'a> !RefUnwindSafe for MetadataClient<'a>
impl<'a> Send for MetadataClient<'a>
impl<'a> Sync for MetadataClient<'a>
impl<'a> Unpin for MetadataClient<'a>
impl<'a> UnsafeUnpin for MetadataClient<'a>
impl<'a> !UnwindSafe for MetadataClient<'a>
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