pub struct Generated {
pub venture: String,
pub package_name: String,
pub composition_hash: String,
pub out: String,
pub files: Vec<String>,
}Expand description
What a successful run did: the generated package’s identity and the files it wrote, in write order.
Fields§
§venture: StringThe venture the client speaks for, from the document.
package_name: StringThe npm package name the files implement: @cratefield/client.
composition_hash: StringThe sha256 composition hash over the generated files, for a reproducible-publish check.
out: StringThe directory the files went to, as --out spelled it.
files: Vec<String>The package-relative paths written, in write order.
Implementations§
Source§impl Generated
impl Generated
Sourcepub fn render_json(&self) -> Result<String, Error>
pub fn render_json(&self) -> Result<String, Error>
The exact stdout payload of a successful fz client-ts --json:
one object, one line.
§Errors
Only if serde_json cannot serialize the payload — a struct of
strings and numbers cannot hit that, but the Result keeps every
caller total instead of panicking.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generated
impl RefUnwindSafe for Generated
impl Send for Generated
impl Sync for Generated
impl Unpin for Generated
impl UnsafeUnpin for Generated
impl UnwindSafe for Generated
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