pub enum TypeView<'a> {
Json {
name: &'a str,
schema: &'a str,
root: Option<&'a Value>,
},
Raw,
Protobuf,
Packed,
}Expand description
A resource’s type, as a reader of the declaration sees it (§2.4).
Variants§
Json
A JSON Schema type: its name, its artifact’s id, and its root
schema, $refs followed (core §9.8), when the reader resolved it.
Raw
A raw type, of any media type.
Protobuf
A protobuf message.
Packed
A packed record (core §7.6), which this profile’s reader does not read yet: it carries no metric kind.
Implementations§
Trait Implementations§
impl<'a> Copy for TypeView<'a>
impl<'a> StructuralPartialEq for TypeView<'a>
Auto Trait Implementations§
impl<'a> Forget for TypeView<'a>
impl<'a> Freeze for TypeView<'a>
impl<'a> Move for TypeView<'a>
impl<'a> RefUnwindSafe for TypeView<'a>
impl<'a> Send for TypeView<'a>
impl<'a> Sync for TypeView<'a>
impl<'a> Unpin for TypeView<'a>
impl<'a> UnsafeUnpin for TypeView<'a>
impl<'a> UnwindSafe for TypeView<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more