pub struct Block {
pub key: String,
pub ident: String,
pub meta: Meta,
pub value: Option<BlockValue>,
pub variants: Vec<VariantSchema>,
}Fields§
§key: String§ident: String§meta: Meta§value: Option<BlockValue>§variants: Vec<VariantSchema>Implementations§
Source§impl Block
impl Block
pub fn is_enum(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_field(&self) -> bool
pub fn is_comented(&self) -> bool
pub fn is_none_skipped(&self) -> bool
pub fn enum_is_expand(&self) -> bool
pub fn enum_is_fold(&self) -> bool
pub fn render(&self) -> Result<String, Error>
pub fn comment(&self) -> Comment
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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