pub struct Config {
pub package_name: String,
pub out_dir: PathBuf,
pub external_packages: Vec<ExternalPackage>,
pub add_runtimes: bool,
pub add_extensions: bool,
}Expand description
Configuration for foreign type generation.
Fields§
§package_name: StringThe name of the package to generate.
out_dir: PathBufThe directory to generate the types in.
external_packages: Vec<ExternalPackage>External packages to reference.
add_runtimes: boolWhether to add runtimes to the generated types.
add_extensions: boolWhether to add extensions to the generated types.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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