pub struct CogniteExtendable<TProperties> {
pub view: Option<ViewReference>,
pub id: InstanceId,
pub audit: CogniteAuditable,
pub properties: TProperties,
}Expand description
Cognite extendable type. This is a data model convenience that allows ease of use of the
cognite_client.models.instances.apply(...) method.
Fields§
§view: Option<ViewReference>The where the instance belong. This can be none if the default view is preferred.
id: InstanceIdId of the instance.
audit: CogniteAuditableAn audit of the lifecycle of the instance
properties: TPropertiesProperties of this type.
Implementations§
Trait Implementations§
Source§impl<TProperties: Clone> Clone for CogniteExtendable<TProperties>
impl<TProperties: Clone> Clone for CogniteExtendable<TProperties>
Source§fn clone(&self) -> CogniteExtendable<TProperties>
fn clone(&self) -> CogniteExtendable<TProperties>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<TProperties: Debug> Debug for CogniteExtendable<TProperties>
impl<TProperties: Debug> Debug for CogniteExtendable<TProperties>
Source§impl<TProperties: Default> Default for CogniteExtendable<TProperties>
impl<TProperties: Default> Default for CogniteExtendable<TProperties>
Source§fn default() -> CogniteExtendable<TProperties>
fn default() -> CogniteExtendable<TProperties>
Returns the “default value” for a type. Read more
Source§impl From<CogniteExtendable<ExtractorFileObject>> for NodeOrEdgeCreate<ExtractorFileObject>
impl From<CogniteExtendable<ExtractorFileObject>> for NodeOrEdgeCreate<ExtractorFileObject>
Source§fn from(value: CogniteExtractorFile) -> NodeOrEdgeCreate<ExtractorFileObject>
fn from(value: CogniteExtractorFile) -> NodeOrEdgeCreate<ExtractorFileObject>
Converts to this type from the input type.
Source§impl From<CogniteExtendable<Timeseries>> for NodeOrEdgeCreate<Timeseries>
impl From<CogniteExtendable<Timeseries>> for NodeOrEdgeCreate<Timeseries>
Source§fn from(value: CogniteTimeseries) -> NodeOrEdgeCreate<Timeseries>
fn from(value: CogniteTimeseries) -> NodeOrEdgeCreate<Timeseries>
Converts to this type from the input type.
Source§impl<TProperties: Clone + WithView> FromReadable<TProperties> for CogniteExtendable<TProperties>
impl<TProperties: Clone + WithView> FromReadable<TProperties> for CogniteExtendable<TProperties>
Source§fn try_from(
value: NodeOrEdge<TProperties>,
view: Option<&ViewReference>,
) -> Result<CogniteExtendable<TProperties>>
fn try_from( value: NodeOrEdge<TProperties>, view: Option<&ViewReference>, ) -> Result<CogniteExtendable<TProperties>>
Try converting from node/edge into this type. Read more
Source§impl<TProperties: Serialize + WithView> WithInstance for CogniteExtendable<TProperties>
impl<TProperties: Serialize + WithView> WithInstance for CogniteExtendable<TProperties>
Source§type Properties = TProperties
type Properties = TProperties
The properties of new instances of this type.
Source§fn instance(self) -> NodeOrEdgeCreate<TProperties>
fn instance(self) -> NodeOrEdgeCreate<TProperties>
Generate a new instance of this type.
Source§impl<TProperties: WithView> WithView for CogniteExtendable<TProperties>
impl<TProperties: WithView> WithView for CogniteExtendable<TProperties>
Auto Trait Implementations§
impl<TProperties> Freeze for CogniteExtendable<TProperties>where
TProperties: Freeze,
impl<TProperties> RefUnwindSafe for CogniteExtendable<TProperties>where
TProperties: RefUnwindSafe,
impl<TProperties> Send for CogniteExtendable<TProperties>where
TProperties: Send,
impl<TProperties> Sync for CogniteExtendable<TProperties>where
TProperties: Sync,
impl<TProperties> Unpin for CogniteExtendable<TProperties>where
TProperties: Unpin,
impl<TProperties> UnwindSafe for CogniteExtendable<TProperties>where
TProperties: UnwindSafe,
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