#[non_exhaustive]pub struct GeneratedFile {
pub path: PathBuf,
pub contents: String,
}Expand description
One generated file, relative to the output directory the caller
chooses. Generating writes no output files; write
does.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBuf§contents: StringImplementations§
Trait Implementations§
Source§impl Clone for GeneratedFile
impl Clone for GeneratedFile
Source§impl Debug for GeneratedFile
impl Debug for GeneratedFile
impl Eq for GeneratedFile
Source§impl PartialEq for GeneratedFile
impl PartialEq for GeneratedFile
impl StructuralPartialEq for GeneratedFile
Auto Trait Implementations§
impl Forget for GeneratedFile
impl Freeze for GeneratedFile
impl Move for GeneratedFile
impl RefUnwindSafe for GeneratedFile
impl Send for GeneratedFile
impl Sync for GeneratedFile
impl Unpin for GeneratedFile
impl UnsafeUnpin for GeneratedFile
impl UnwindSafe for GeneratedFile
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.