pub struct ForwardedField {
pub ident: Ident,
pub with: Option<Path>,
}Expand description
A forwarded field and attributes that influence its behavior.
Fields§
§ident: IdentThe ident of the field that will receive the forwarded value.
with: Option<Path>Path of the function that will be called to convert the forwarded value
into the type expected by the field in ident.
Trait Implementations§
Source§impl Clone for ForwardedField
impl Clone for ForwardedField
Source§fn clone(&self) -> ForwardedField
fn clone(&self) -> ForwardedField
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 ForwardedField
impl Debug for ForwardedField
Source§impl FromField for ForwardedField
impl FromField for ForwardedField
fn from_field(field: &Field) -> Result<Self>
Source§impl ParseAttribute for ForwardedField
impl ParseAttribute for ForwardedField
Auto Trait Implementations§
impl Freeze for ForwardedField
impl RefUnwindSafe for ForwardedField
impl !Send for ForwardedField
impl !Sync for ForwardedField
impl Unpin for ForwardedField
impl UnwindSafe for ForwardedField
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