pub struct GenerationResult {
pub files: Vec<GeneratedFile>,
}Expand description
In-memory output from a generator invocation.
Fields§
§files: Vec<GeneratedFile>Generated files. The caller decides whether and where to write them.
Implementations§
Source§impl GenerationResult
impl GenerationResult
Sourcepub fn new(files: Vec<GeneratedFile>) -> Self
pub fn new(files: Vec<GeneratedFile>) -> Self
Create a generation result from in-memory files.
Trait Implementations§
Source§impl Clone for GenerationResult
impl Clone for GenerationResult
Source§fn clone(&self) -> GenerationResult
fn clone(&self) -> GenerationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenerationResult
impl Debug for GenerationResult
Source§impl Default for GenerationResult
impl Default for GenerationResult
Source§fn default() -> GenerationResult
fn default() -> GenerationResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerationResult
impl<'de> Deserialize<'de> for GenerationResult
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 GenerationResult
impl PartialEq for GenerationResult
Source§fn eq(&self, other: &GenerationResult) -> bool
fn eq(&self, other: &GenerationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GenerationResult
impl Serialize for GenerationResult
impl Eq for GenerationResult
impl StructuralPartialEq for GenerationResult
Auto Trait Implementations§
impl Freeze for GenerationResult
impl RefUnwindSafe for GenerationResult
impl Send for GenerationResult
impl Sync for GenerationResult
impl Unpin for GenerationResult
impl UnsafeUnpin for GenerationResult
impl UnwindSafe for GenerationResult
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