pub struct FieldInfo {
pub name: String,
pub location: ByteSpan,
pub attributes: Vec<String>,
pub param: bool,
pub reader: Option<String>,
pub writer: Option<String>,
pub accessor: Option<String>,
pub mutator: Option<String>,
pub default: Option<String>,
}Expand description
An Object::Pad field declaration.
Fields§
§name: StringField name (e.g., name from field $name :param)
location: ByteSpanSource location of the field declaration
attributes: Vec<String>Raw field traits such as param, reader, and writer
param: boolWhether :param is present
reader: Option<String>Explicit or synthesized reader method name
writer: Option<String>Explicit or synthesized writer method name
accessor: Option<String>Explicit or synthesized accessor method name
mutator: Option<String>Explicit or synthesized mutator method name
default: Option<String>Optional initializer expression summary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnsafeUnpin for FieldInfo
impl UnwindSafe for FieldInfo
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