pub struct TsImport {
pub from: String,
pub name: String,
pub type_only: bool,
}Expand description
Where a foreign type’s TypeScript definition comes from.
Fields§
§from: StringThe module to import from: a package name, or a path relative to each generated file.
name: StringThe name the module exports.
type_only: boolWhether to write import type. A namespace used as a value, such as
DateTime.Utc, needs a plain import.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TsImport
impl<'de> Deserialize<'de> for TsImport
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 Eq for TsImport
impl StructuralPartialEq for TsImport
Auto Trait Implementations§
impl Forget for TsImport
impl Freeze for TsImport
impl Move for TsImport
impl RefUnwindSafe for TsImport
impl Send for TsImport
impl Sync for TsImport
impl Unpin for TsImport
impl UnsafeUnpin for TsImport
impl UnwindSafe for TsImport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.