Struct loco_cli::generate::ArgsPlaceholder
source · pub struct ArgsPlaceholder {
pub lib_name: String,
pub db: Option<DBOption>,
pub bg: Option<BackgroundOption>,
pub assets: Option<AssetsOption>,
pub template: Option<String>,
}Expand description
Represents internal placeholders to be replaced.
Fields§
§lib_name: String§db: Option<DBOption>§bg: Option<BackgroundOption>§assets: Option<AssetsOption>§template: Option<String>Implementations§
source§impl ArgsPlaceholder
impl ArgsPlaceholder
sourcepub fn replace_placeholders(&self, content: &str) -> String
pub fn replace_placeholders(&self, content: &str) -> String
replace strings placeholder with cli arguments.
For example, replace any string that contains {{LibName}} with the
given lib name.
Trait Implementations§
source§impl Clone for ArgsPlaceholder
impl Clone for ArgsPlaceholder
source§fn clone(&self) -> ArgsPlaceholder
fn clone(&self) -> ArgsPlaceholder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ArgsPlaceholder
impl Debug for ArgsPlaceholder
source§impl Default for ArgsPlaceholder
impl Default for ArgsPlaceholder
source§fn default() -> ArgsPlaceholder
fn default() -> ArgsPlaceholder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArgsPlaceholder
impl RefUnwindSafe for ArgsPlaceholder
impl Send for ArgsPlaceholder
impl Sync for ArgsPlaceholder
impl Unpin for ArgsPlaceholder
impl UnwindSafe for ArgsPlaceholder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)