pub struct ActiveModelIdentity {
pub name: String,
pub dim: u32,
pub dtype: String,
}Expand description
What the active-model fetch reported for one model (general or code).
All three fields are present iff the fetch succeeded AND the model exists; a
failed/absent fetch is represented by passing None to derive().
Fields§
§name: StringBare model name from the active-model response.
dim: u32Dimension from the active-model response.
dtype: StringDtype from the active-model response (new field; "float" today).
Trait Implementations§
Source§impl Clone for ActiveModelIdentity
impl Clone for ActiveModelIdentity
Source§fn clone(&self) -> ActiveModelIdentity
fn clone(&self) -> ActiveModelIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActiveModelIdentity
impl Debug for ActiveModelIdentity
impl Eq for ActiveModelIdentity
Source§impl PartialEq for ActiveModelIdentity
impl PartialEq for ActiveModelIdentity
Source§fn eq(&self, other: &ActiveModelIdentity) -> bool
fn eq(&self, other: &ActiveModelIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActiveModelIdentity
Auto Trait Implementations§
impl Freeze for ActiveModelIdentity
impl RefUnwindSafe for ActiveModelIdentity
impl Send for ActiveModelIdentity
impl Sync for ActiveModelIdentity
impl Unpin for ActiveModelIdentity
impl UnsafeUnpin for ActiveModelIdentity
impl UnwindSafe for ActiveModelIdentity
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.