Struct fp_bindgen::types::StructOptions
source · [−]pub struct StructOptions {
pub field_casing: Casing,
pub native_modules: BTreeMap<String, String>,
}
Fields
field_casing: Casing
native_modules: BTreeMap<String, String>
Rust module paths where the type can be found for the given generator. If present, the generator can use this type instead of generating it.
Example:
#[fp(rust_plugin_module = "my_crate")]
struct MyStruct { /* ... */ }
This will insert "rust_plugin" => "my_crate"
into the map, which can
be used by the Rust plugin generator to generate a use
statement such
as:
pub use my_crate::MyStruct;
Instead of generating the struct definition itself.
Implementations
sourceimpl StructOptions
impl StructOptions
Trait Implementations
sourceimpl Clone for StructOptions
impl Clone for StructOptions
sourcefn clone(&self) -> StructOptions
fn clone(&self) -> StructOptions
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 StructOptions
impl Debug for StructOptions
sourceimpl Default for StructOptions
impl Default for StructOptions
sourcefn default() -> StructOptions
fn default() -> StructOptions
Returns the “default value” for a type. Read more
sourceimpl Hash for StructOptions
impl Hash for StructOptions
sourceimpl Parse for StructOptions
impl Parse for StructOptions
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<StructOptions> for StructOptions
impl PartialEq<StructOptions> for StructOptions
sourcefn eq(&self, other: &StructOptions) -> bool
fn eq(&self, other: &StructOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StructOptions) -> bool
fn ne(&self, other: &StructOptions) -> bool
This method tests for !=
.
impl Eq for StructOptions
impl StructuralEq for StructOptions
impl StructuralPartialEq for StructOptions
Auto Trait Implementations
impl RefUnwindSafe for StructOptions
impl Send for StructOptions
impl Sync for StructOptions
impl Unpin for StructOptions
impl UnwindSafe for StructOptions
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