Struct perseus::state::BuildPaths
source · pub struct BuildPaths {
pub paths: Vec<String>,
pub extra: TemplateState,
}
Expand description
The output of the build seed system, which should be generated by a user function for each template.
Fields§
§paths: Vec<String>
The paths to render underneath this template, without the template name or leading forward slashes.
extra: TemplateState
Any additional state, of an arbitrary type, to be passed to all future state generation. This can be used to avoid unnecessary duplicate filesystem reads, or the like.
The exact type information from this is deliberately discarded.
Trait Implementations§
source§impl Debug for BuildPaths
impl Debug for BuildPaths
source§impl From<BuildPaths> for GeneratorResult<BuildPaths>
impl From<BuildPaths> for GeneratorResult<BuildPaths>
source§fn from(val: BuildPaths) -> Self
fn from(val: BuildPaths) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BuildPaths
impl Send for BuildPaths
impl Sync for BuildPaths
impl Unpin for BuildPaths
impl UnwindSafe for BuildPaths
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