pub struct Config {
pub attr_lists: &'static [&'static str],
pub default_path: TokenStream,
}Expand description
Configuration for a derive crate using this code generation.
Fields§
§attr_lists: &'static [&'static str]Attribute list names to parse, e.g. ["zvariant", "zbus"].
default_path: TokenStreamCrate path used when the user doesn’t override it via the crate attribute.
Implementations§
Source§impl Config
impl Config
Sourcepub fn resolve_path(&self, crate_attr: Option<&str>) -> Result<TokenStream>
pub fn resolve_path(&self, crate_attr: Option<&str>) -> Result<TokenStream>
The crate path to emit, honoring the user’s crate attribute override.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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