pub struct FieldSig {
pub ty: Type,
pub visibility: Visibility,
pub readonly: bool,
pub optional: bool,
pub doc: Option<DocComment>,
}Expand description
A class instance field. Unlike PropertySig, a field may be mutable and carries
visibility; readonly fields are writeable only inside the declaring constructor.
Optional fields widen reads to T | undefined.
Fields§
§ty: Type§visibility: Visibility§readonly: bool§optional: bool§doc: Option<DocComment>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldSig
impl<'de> Deserialize<'de> for FieldSig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FieldSig
Auto Trait Implementations§
impl Freeze for FieldSig
impl RefUnwindSafe for FieldSig
impl Send for FieldSig
impl Sync for FieldSig
impl Unpin for FieldSig
impl UnsafeUnpin for FieldSig
impl UnwindSafe for FieldSig
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