Struct qcs_api::models::characteristic::Characteristic
source · [−]pub struct Characteristic {
pub error: Option<f32>,
pub name: String,
pub node_ids: Option<Vec<i32>>,
pub parameter_values: Option<Vec<f32>>,
pub timestamp: String,
pub value: f32,
}Expand description
Characteristic : A measured characteristic of an operation.
Fields
error: Option<f32>The error in the characteristic value, or None otherwise.
name: StringThe name of the characteristic.
node_ids: Option<Vec<i32>>The list of architecture node ids for the site where the characteristic is measured, if that is different from the site of the enclosing operation. None if it is the same. The order of this or the enclosing node ids obey the definition of node symmetry from the enclosing operation.
parameter_values: Option<Vec<f32>>The optional ordered list of parameter values used to generate the characteristic. The order matches the parameters in the enclosing operation, and so the lengths of these two lists must match.
timestamp: StringThe date and time at which the characteristic was measured.
value: f32The characteristic value measured.
Implementations
sourceimpl Characteristic
impl Characteristic
Trait Implementations
sourceimpl Clone for Characteristic
impl Clone for Characteristic
sourcefn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Characteristic
impl Debug for Characteristic
sourceimpl Default for Characteristic
impl Default for Characteristic
sourcefn default() -> Characteristic
fn default() -> Characteristic
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Characteristic
impl<'de> Deserialize<'de> for Characteristic
sourcefn 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
sourceimpl PartialEq<Characteristic> for Characteristic
impl PartialEq<Characteristic> for Characteristic
sourcefn eq(&self, other: &Characteristic) -> bool
fn eq(&self, other: &Characteristic) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Characteristic) -> bool
fn ne(&self, other: &Characteristic) -> bool
This method tests for !=.
sourceimpl Serialize for Characteristic
impl Serialize for Characteristic
impl StructuralPartialEq for Characteristic
Auto Trait Implementations
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more