pub struct ShizenConfig {
pub shizen: Metadata,
pub package: PackageInfo,
}Fields§
§shizen: MetadataThe plugin’s metadata table [shizen]
package: PackageInfoPackage info extracted from the Cargo.toml manifest
This info is not fetched from the actual Cargo.toml,
but is rather fetched from the cargo environment variables,
to allow for workspaces and getting the fields even if they are
fieldname.workspace = true
Implementations§
Source§impl ShizenConfig
impl ShizenConfig
pub fn new() -> Result<Self, ConfigError>
Trait Implementations§
Source§impl Debug for ShizenConfig
impl Debug for ShizenConfig
Source§impl<'de> Deserialize<'de> for ShizenConfig
impl<'de> Deserialize<'de> for ShizenConfig
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 ShizenConfig
impl RefUnwindSafe for ShizenConfig
impl Send for ShizenConfig
impl Sync for ShizenConfig
impl Unpin for ShizenConfig
impl UnwindSafe for ShizenConfig
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