pub struct ShowcaseConfig {
pub project: ShowcaseProjectConfig,
pub dev: ShowcaseDevConfig,
pub build: ShowcaseBuildConfig,
}Fields§
§project: ShowcaseProjectConfig§dev: ShowcaseDevConfig§build: ShowcaseBuildConfigImplementations§
Source§impl ShowcaseConfig
impl ShowcaseConfig
Sourcepub fn as_toml_string(&self) -> String
pub fn as_toml_string(&self) -> String
Serializes the config into the on-disk DioxusShowcase.toml format.
Sourcepub fn write_default_if_missing(path: impl AsRef<Path>) -> Result<bool>
pub fn write_default_if_missing(path: impl AsRef<Path>) -> Result<bool>
Writes a default config file only when the target path does not already exist.
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, String>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, String>
Loads and parses a config file from disk.
Sourcepub fn from_toml_str(content: &str) -> Result<Self, String>
pub fn from_toml_str(content: &str) -> Result<Self, String>
Parses a config from TOML source text.
Trait Implementations§
Source§impl Clone for ShowcaseConfig
impl Clone for ShowcaseConfig
Source§fn clone(&self) -> ShowcaseConfig
fn clone(&self) -> ShowcaseConfig
Returns a duplicate 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 ShowcaseConfig
impl Debug for ShowcaseConfig
Source§impl Default for ShowcaseConfig
impl Default for ShowcaseConfig
Source§fn default() -> ShowcaseConfig
fn default() -> ShowcaseConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShowcaseConfigwhere
ShowcaseConfig: Default,
impl<'de> Deserialize<'de> for ShowcaseConfigwhere
ShowcaseConfig: Default,
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
Source§impl PartialEq for ShowcaseConfig
impl PartialEq for ShowcaseConfig
Source§impl Serialize for ShowcaseConfig
impl Serialize for ShowcaseConfig
impl Eq for ShowcaseConfig
impl StructuralPartialEq for ShowcaseConfig
Auto Trait Implementations§
impl Freeze for ShowcaseConfig
impl RefUnwindSafe for ShowcaseConfig
impl Send for ShowcaseConfig
impl Sync for ShowcaseConfig
impl Unpin for ShowcaseConfig
impl UnsafeUnpin for ShowcaseConfig
impl UnwindSafe for ShowcaseConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.