pub struct TsClassField {
pub name: String,
pub ty: TsType,
pub readonly: bool,
pub optional: bool,
pub is_private: bool,
pub is_static: bool,
}Expand description
A field in a TypeScript class.
Fields§
§name: String§ty: TsType§readonly: bool§optional: bool§is_private: bool§is_static: boolTrait Implementations§
Source§impl Clone for TsClassField
impl Clone for TsClassField
Source§fn clone(&self) -> TsClassField
fn clone(&self) -> TsClassField
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 moreAuto Trait Implementations§
impl Freeze for TsClassField
impl RefUnwindSafe for TsClassField
impl Send for TsClassField
impl Sync for TsClassField
impl Unpin for TsClassField
impl UnsafeUnpin for TsClassField
impl UnwindSafe for TsClassField
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