pub struct DataModel {
pub space: String,
pub external_id: String,
pub name: Option<String>,
pub description: Option<String>,
pub version: String,
pub views: Option<Vec<ViewDefinitionOrReference>>,
pub created_time: i64,
pub last_updated_time: i64,
pub is_global: bool,
}Expand description
A CDF data model.
Fields§
§space: StringData model space.
external_id: StringData model external ID.
name: Option<String>Data model name.
description: Option<String>Data model description.
version: StringData model version.
views: Option<Vec<ViewDefinitionOrReference>>Views in data model.
created_time: i64Time this data model was created, in milliseconds since epoch.
last_updated_time: i64Time this data model was last updated, in milliseconds since epoch.
is_global: boolWhether this data model is global (defined by CDF) or project specific.
Trait Implementations§
Source§impl Create<DataModelCreate, DataModel> for Resource<DataModel>
impl Create<DataModelCreate, DataModel> for Resource<DataModel>
Source§impl<'de> Deserialize<'de> for DataModel
impl<'de> Deserialize<'de> for DataModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DataModel> for DataModelCreate
impl From<DataModel> for DataModelCreate
Source§impl List<DataModelQuery, DataModel> for Resource<DataModel>
impl List<DataModelQuery, DataModel> for Resource<DataModel>
Source§fn list(
&self,
params: Option<TParams>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn list( &self, params: Option<TParams>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Query a resource with optional query parameters. Read more
Source§fn list_all(
&self,
params: TParams,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn list_all( &self, params: TParams, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Query a resource with query parameters, continuing until the cursor is exhausted. Read more
Source§fn list_all_stream(
&self,
params: TParams,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn list_all_stream( &self, params: TParams, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
List resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Auto Trait Implementations§
impl Freeze for DataModel
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnwindSafe for DataModel
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