pub struct FieldThenParams {
pub field: Field,
pub comma: Option<Comma>,
pub params: Punctuated<NameValueExpr, Comma>,
}Expand description
Field declaration followed by optional parameters.
Represents a struct field declaration optionally followed by a comma and additional named parameters. Used in parsing attribute syntax that includes field definitions with extra metadata.
Fields§
§field: FieldThe field declaration.
comma: Option<Comma>Optional comma separator before params.
params: Punctuated<NameValueExpr, Comma>Additional named parameters.
Trait Implementations§
Source§impl Clone for FieldThenParams
impl Clone for FieldThenParams
Source§fn clone(&self) -> FieldThenParams
fn clone(&self) -> FieldThenParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldThenParams
impl Debug for FieldThenParams
Source§impl Parse for FieldThenParams
impl Parse for FieldThenParams
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for FieldThenParams
impl PartialEq for FieldThenParams
impl Eq for FieldThenParams
impl StructuralPartialEq for FieldThenParams
Auto Trait Implementations§
impl Freeze for FieldThenParams
impl RefUnwindSafe for FieldThenParams
impl !Send for FieldThenParams
impl !Sync for FieldThenParams
impl Unpin for FieldThenParams
impl UnsafeUnpin for FieldThenParams
impl UnwindSafe for FieldThenParams
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