pub enum Views {
Generate,
Skip,
}Expand description
Whether a library’s views are generated beside its schema data.
The data is not optional either way: it is what a registry is built from, so a library declining an API still ships what registers it.
Variants§
Generate
Generate the trait and view per schema.
Skip
Generate the tokens and the schema data alone, for a library whose API
is written by hand. A schema declaring skipCodeGeneration is treated
this way however it was asked for.
Trait Implementations§
impl Copy for Views
impl Eq for Views
impl StructuralPartialEq for Views
Auto Trait Implementations§
impl Freeze for Views
impl RefUnwindSafe for Views
impl Send for Views
impl Sync for Views
impl Unpin for Views
impl UnsafeUnpin for Views
impl UnwindSafe for Views
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.