pub enum Style {
Both,
Tag,
Type,
}
Expand description
A style of Style to use when generating structs and enums.
Variants
Implementations
sourceimpl Style
impl Style
pub fn generate_tag(&self) -> bool
pub fn generate_typedef(&self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Style
impl<'de> Deserialize<'de> for Style
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
impl StructuralPartialEq for Style
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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