DataSetsResource

Type Alias DataSetsResource 

Source
pub type DataSetsResource = Resource<DataSet>;
Expand description

API resource for data sets.

Aliased Type§

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

Fields§

§api_client: Arc<ApiClient>

A reference to the shared API Client.

Implementations§

Source§

impl DataSetsResource

Source

pub async fn count(&self, filter: DataSetFilter) -> Result<DataSetsCount>

Calculate the total number of data sets in the project matching the given filter

§Arguments
  • filter - Optional filter.

Trait Implementations§

Source§

impl Create<AddDataSet, DataSet> for DataSetsResource

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 FilterItems<DataSetFilter, DataSet> for DataSetsResource

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<R> RetrieveWithIgnoreUnknownIds<IdentityList<R>, DataSet> for DataSetsResource
where IdentityList<R>: Serialize, R: Send + Sync,

Source§

fn retrieve( &self, ids: impl Into<TIdt> + Send, ignore_unknown_ids: bool, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send

Retrieve a list of items from CDF. If ignore_unknown_ids is false, this will fail if any items are missing from CDF. Read more
Source§

impl Update<Patch<PatchDataSet>, DataSet> for DataSetsResource

Source§

fn update( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send

Update a list of resources. Read more
Source§

fn update_from<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
where T: Sync + Clone + 'a, TUpdate: From<T>,

Update a list of resources by converting to the update from a different type. Read more
Source§

fn update_ignore_unknown_ids( &self, updates: &[TUpdate], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
where TUpdate: EqIdentity, TResponse: Send,

Update a list of resources, ignoring any that fail due to items missing in CDF. Read more
Source§

fn update_from_ignore_unknown_ids<'a, T>( &self, updates: &'a [T], ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
where T: Sync + Clone + 'a, TUpdate: From<T> + EqIdentity, TResponse: Send,

Update a list of resources by converting from a different type, ignoring any that fail due items missing in CDF. Read more
Source§

impl WithBasePath for DataSetsResource

Source§

const BASE_PATH: &'static str = "datasets"

Base path for this resource type.