cognite-sdk 0.6.2

SDK for the Cognite Data Fusion API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    dto::data_modeling::data_models::{DataModel, DataModelCreate, DataModelId, DataModelQuery},
    Create, DeleteWithResponse, List, Resource, Retrieve, WithBasePath,
};

/// A data model is a collection of views. Use the data model to group and structure views into a
/// recognizable and understood model. The model represents a reusable collection of data.
pub type DataModelsResource = Resource<DataModel>;

impl WithBasePath for DataModelsResource {
    const BASE_PATH: &'static str = "models/datamodels";
}

impl Create<DataModelCreate, DataModel> for DataModelsResource {}
impl List<DataModelQuery, DataModel> for DataModelsResource {}
impl DeleteWithResponse<DataModelId, DataModelId> for DataModelsResource {}
impl Retrieve<DataModelId, DataModel> for DataModelsResource {}