pub struct ConfigField {
pub name: Ident,
pub value: Expr,
pub span: Span,
}Expand description
A configuration field in a datasource or generator block.
Fields§
§name: IdentThe field name.
value: ExprThe field value (typically a string or function call).
span: SpanSpan covering the entire field declaration.
Trait Implementations§
Source§impl Clone for ConfigField
impl Clone for ConfigField
Source§fn clone(&self) -> ConfigField
fn clone(&self) -> ConfigField
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 ConfigField
impl Debug for ConfigField
Source§impl PartialEq for ConfigField
impl PartialEq for ConfigField
impl StructuralPartialEq for ConfigField
Auto Trait Implementations§
impl Freeze for ConfigField
impl RefUnwindSafe for ConfigField
impl Send for ConfigField
impl Sync for ConfigField
impl Unpin for ConfigField
impl UnsafeUnpin for ConfigField
impl UnwindSafe for ConfigField
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