pub struct SchemaAttr {
pub rename: Option<String>,
pub flatten: bool,
pub default: FlagOrValue<Expr>,
}Fields§
§rename: Option<String>§flatten: bool§default: FlagOrValue<Expr>Trait Implementations§
Source§impl AttributeIdent for SchemaAttr
impl AttributeIdent for SchemaAttr
Source§impl Default for SchemaAttr
impl Default for SchemaAttr
Source§fn default() -> SchemaAttr
fn default() -> SchemaAttr
Returns the “default value” for a type. Read more
Source§impl FromAttr for SchemaAttr
impl FromAttr for SchemaAttr
Source§fn from_parser(parser: Self::Parser, spans: &[Span]) -> Result<Self>
fn from_parser(parser: Self::Parser, spans: &[Span]) -> Result<Self>
Convert from
Parser to values.Source§fn from_meta_list(list: &MetaList) -> Result<Option<Self>, Error>where
Self: AttributeIdent,
fn from_meta_list(list: &MetaList) -> Result<Option<Self>, Error>where
Self: AttributeIdent,
Convert from
MetaList to values.Source§fn from_attributes(
attrs: &[Attribute],
) -> Result<Option<AttrsValue<&Attribute, Self>>, AttrsValue<&Attribute, Error>>where
Self: AttributeIdent,
fn from_attributes(
attrs: &[Attribute],
) -> Result<Option<AttrsValue<&Attribute, Self>>, AttrsValue<&Attribute, Error>>where
Self: AttributeIdent,
Source§fn remove_attributes(
attrs: &mut Vec<Attribute>,
) -> Result<Option<AttrsValue<Attribute, Self>>, AttrsValue<Attribute, Error>>where
Self: AttributeIdent,
fn remove_attributes(
attrs: &mut Vec<Attribute>,
) -> Result<Option<AttrsValue<Attribute, Self>>, AttrsValue<Attribute, Error>>where
Self: AttributeIdent,
Source§fn from_tokens(tokens: TokenStream) -> Result<Self, Error>
fn from_tokens(tokens: TokenStream) -> Result<Self, Error>
Convert from
TokenStream to values. Read moreAuto Trait Implementations§
impl Freeze for SchemaAttr
impl RefUnwindSafe for SchemaAttr
impl !Send for SchemaAttr
impl !Sync for SchemaAttr
impl Unpin for SchemaAttr
impl UnwindSafe for SchemaAttr
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