Struct GCDatapointMetadata
pub struct GCDatapointMetadata {
pub name: String,
pub unit: String,
pub description: String,
pub buffer_size: u64,
pub save: bool,
pub offset: Option<String>,
pub factor: Option<String>,
}Expand description
Metadata for a datapoint
Fields§
§name: String§unit: String§description: String§buffer_size: u64§save: bool§offset: Option<String>§factor: Option<String>Implementations§
§impl GCDatapointMetadata
impl GCDatapointMetadata
pub fn parse_scale_transformation( &self, ) -> Result<Option<ScaleTransformation>, GCGatewayError>
Trait Implementations§
§impl Clone for GCDatapointMetadata
impl Clone for GCDatapointMetadata
§fn clone(&self) -> GCDatapointMetadata
fn clone(&self) -> GCDatapointMetadata
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 more§impl Debug for GCDatapointMetadata
impl Debug for GCDatapointMetadata
§impl Default for GCDatapointMetadata
impl Default for GCDatapointMetadata
§fn default() -> GCDatapointMetadata
fn default() -> GCDatapointMetadata
Returns the “default value” for a type. Read more
§impl PartialEq for GCDatapointMetadata
impl PartialEq for GCDatapointMetadata
impl Eq for GCDatapointMetadata
impl StructuralPartialEq for GCDatapointMetadata
Auto Trait Implementations§
impl Freeze for GCDatapointMetadata
impl RefUnwindSafe for GCDatapointMetadata
impl Send for GCDatapointMetadata
impl Sync for GCDatapointMetadata
impl Unpin for GCDatapointMetadata
impl UnsafeUnpin for GCDatapointMetadata
impl UnwindSafe for GCDatapointMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.