pub struct ContextData {
pub dev: bool,
pub config: Config,
pub config_parent: PathBuf,
pub root: TokenStream,
pub capabilities: Option<Vec<PathBuf>>,
pub assets: Option<Expr>,
pub test: bool,
}
Expand description
Necessary data needed by context_codegen
to generate code for a Tauri application context.
Fields§
§dev: bool
§config: Config
§config_parent: PathBuf
§root: TokenStream
§capabilities: Option<Vec<PathBuf>>
Additional capabilities to include.
assets: Option<Expr>
The custom assets implementation
test: bool
Skip runtime-only types generation for tests (e.g. embed-plist usage).
Auto Trait Implementations§
impl Freeze for ContextData
impl RefUnwindSafe for ContextData
impl !Send for ContextData
impl !Sync for ContextData
impl Unpin for ContextData
impl UnwindSafe for ContextData
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