pub struct Settings {
pub package_name: String,
pub module_name: String,
pub db: Option<Db>,
pub background: Option<Background>,
pub asset: Option<Asset>,
pub auth: bool,
pub mailer: bool,
pub initializers: Option<Initializers>,
pub features: Features,
pub pipi_version_text: String,
pub os: OS,
}Expand description
Represents general application settings.
Fields§
§package_name: String§module_name: String§db: Option<Db>§background: Option<Background>§asset: Option<Asset>§auth: bool§mailer: bool§initializers: Option<Initializers>§features: Features§pipi_version_text: String§os: OSImplementations§
Source§impl Settings
impl Settings
Sourcepub fn from_wizard(
package_name: &str,
prompt_selection: &Selections,
os: OS,
) -> Self
pub fn from_wizard( package_name: &str, prompt_selection: &Selections, os: OS, ) -> Self
Creates a new Settings instance based on prompt selections.
Trait Implementations§
Source§impl CustomType for Settings
impl CustomType for Settings
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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