pub struct TsInterface {
pub name: String,
pub extends: Vec<String>,
pub members: Vec<TsInterfaceMember>,
pub type_params: Vec<String>,
}Expand description
A TypeScript interface declaration.
Fields§
§name: String§extends: Vec<String>Interfaces this interface extends.
members: Vec<TsInterfaceMember>Members of the interface.
type_params: Vec<String>Generic type parameters: <T, U extends string>.
Trait Implementations§
Source§impl Clone for TsInterface
impl Clone for TsInterface
Source§fn clone(&self) -> TsInterface
fn clone(&self) -> TsInterface
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 TsInterface
impl Debug for TsInterface
Auto Trait Implementations§
impl Freeze for TsInterface
impl RefUnwindSafe for TsInterface
impl Send for TsInterface
impl Sync for TsInterface
impl Unpin for TsInterface
impl UnsafeUnpin for TsInterface
impl UnwindSafe for TsInterface
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