pub struct TemplateInfo {
pub path: EcoString,
pub entrypoint: EcoString,
pub thumbnail: Option<EcoString>,
pub unknown_fields: UnknownFields,
}
Expand description
The [template]
key in the manifest.
The unknown_fields
contains fields which were found but not expected.
Fields§
§path: EcoString
The directory within the package that contains the files that should be copied into the user’s new project directory.
entrypoint: EcoString
A path relative to the template’s path that points to the file serving as the compilation target.
thumbnail: Option<EcoString>
A path relative to the package’s root that points to a PNG or lossless WebP thumbnail for the template.
unknown_fields: UnknownFields
All parsed but unknown fields, this can be used for validation.
Trait Implementations§
source§impl Clone for TemplateInfo
impl Clone for TemplateInfo
source§fn clone(&self) -> TemplateInfo
fn clone(&self) -> TemplateInfo
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 TemplateInfo
impl Debug for TemplateInfo
source§impl<'de> Deserialize<'de> for TemplateInfo
impl<'de> Deserialize<'de> for TemplateInfo
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 TemplateInfo
impl PartialEq for TemplateInfo
source§impl Serialize for TemplateInfo
impl Serialize for TemplateInfo
impl StructuralPartialEq for TemplateInfo
Auto Trait Implementations§
impl Freeze for TemplateInfo
impl RefUnwindSafe for TemplateInfo
impl Send for TemplateInfo
impl Sync for TemplateInfo
impl Unpin for TemplateInfo
impl UnwindSafe for TemplateInfo
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more