pub struct Config {
pub name: String,
pub dest: PathBuf,
pub derives: Vec<String>,
pub build_examples: bool,
pub ormlite: bool,
}
Fields§
§name: String
§dest: PathBuf
§derives: Vec<String>
§build_examples: bool
§ormlite: bool
Implementations§
Source§impl Config
impl Config
pub fn user_agent(&self) -> Literal<String>
pub fn client_name(&self) -> Ident
pub fn async_client_name(&self) -> String
pub fn authenticator_name(&self) -> String
pub fn package_name(&self) -> String
pub fn env_var(&self, name: &str) -> Literal<String>
pub fn src(&self) -> PathBuf
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