LabelsResource

Type Alias LabelsResource 

Source
pub type LabelsResource = Resource<Label>;
Expand description

API resource for labels.

Aliased Type§

pub struct LabelsResource {
    pub api_client: Arc<ApiClient>,
    /* private fields */
}

Fields§

§api_client: Arc<ApiClient>

A reference to the shared API Client.

Trait Implementations§

Source§

impl Create<AddLabel, Label> for LabelsResource

Source§

fn create( &self, creates: &[TCreate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send

Create a list of resources. Read more
Source§

fn create_from( &self, creates: &[impl Into<TCreate> + Sync + Clone], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send

Create a list of resources, converting from a different type. Read more
Source§

impl Delete<CogniteExternalId> for LabelsResource

Source§

fn delete(&self, deletes: &[TIdt]) -> impl Future<Output = Result<()>> + Send

Delete a list of resources by ID. Read more
Source§

impl FilterItems<LabelFilter, Label> for LabelsResource

Source§

fn filter_items( &self, filter: TFilter, cursor: Option<String>, limit: Option<u32>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send

Filter resources using a simple filter. The response may contain a cursor that can be used to paginate results. Read more
Source§

impl WithBasePath for LabelsResource

Source§

const BASE_PATH: &'static str = "labels"

Base path for this resource type.