Struct fp_bindgen::prelude::CustomType
source · [−]pub struct CustomType {
pub ident: TypeIdent,
pub rs_ty: String,
pub rs_dependencies: BTreeMap<&'static str, CargoDependency>,
pub serde_attrs: Vec<String>,
pub ts_ty: String,
pub ts_declaration: Option<String>,
}
Expand description
Used for defining type information for types that are defined externally, or that otherwise require custom treatment.
Fields
ident: TypeIdent
rs_ty: String
Qualified path to refer to the type in the Rust generators.
rs_dependencies: BTreeMap<&'static str, CargoDependency>
Dependencies to add to the Rust plugin’s Cargo.toml
to be able to
use the type.
Keys in the map are dependency names as they appear on the left-hand
side of the =
in the Cargo.toml
[dependencies]
section, while the
value describes what comes on the right-hand side.
serde_attrs: Vec<String>
Serde attributes to add to fields of this type.
ts_ty: String
Name to refer to the type in the TypeScript generator.
ts_declaration: Option<String>
Optional declaration, for when ts_ty
does not refer to a built-in
type.
Trait Implementations
sourceimpl Clone for CustomType
impl Clone for CustomType
sourcefn clone(&self) -> CustomType
fn clone(&self) -> CustomType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CustomType
impl Debug for CustomType
sourceimpl Hash for CustomType
impl Hash for CustomType
sourceimpl PartialEq<CustomType> for CustomType
impl PartialEq<CustomType> for CustomType
sourcefn eq(&self, other: &CustomType) -> bool
fn eq(&self, other: &CustomType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CustomType) -> bool
fn ne(&self, other: &CustomType) -> bool
This method tests for !=
.
impl Eq for CustomType
impl StructuralEq for CustomType
impl StructuralPartialEq for CustomType
Auto Trait Implementations
impl RefUnwindSafe for CustomType
impl Send for CustomType
impl Sync for CustomType
impl Unpin for CustomType
impl UnwindSafe for CustomType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more