pub struct ModelShape {
pub schema: &'static str,
pub fields: &'static [&'static str],
}Expand description
One model, as the drift test sees it.
schema is the path the description reaches this object by: a name from
components/schemas for the thirty-four that have one, a dotted path like
Device.clientConnectivity for the eleven inline objects that do not, and
a route like POST /tailnet/{tailnet}/keys body for one the description
spells out where it is used.
Fields§
§schema: &'static str§fields: &'static [&'static str]The JSON names, in declaration order. Not the Rust names.
Trait Implementations§
Source§impl Clone for ModelShape
impl Clone for ModelShape
Source§fn clone(&self) -> ModelShape
fn clone(&self) -> ModelShape
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 moreimpl Copy for ModelShape
Source§impl Debug for ModelShape
impl Debug for ModelShape
impl Eq for ModelShape
Source§impl PartialEq for ModelShape
impl PartialEq for ModelShape
impl StructuralPartialEq for ModelShape
Auto Trait Implementations§
impl Freeze for ModelShape
impl RefUnwindSafe for ModelShape
impl Send for ModelShape
impl Sync for ModelShape
impl Unpin for ModelShape
impl UnsafeUnpin for ModelShape
impl UnwindSafe for ModelShape
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.