pub struct GeneratedPackage {
pub venture: String,
pub package_name: String,
pub composition_hash: String,
pub files: Vec<GeneratedFile>,
}Expand description
The generated client package.
Fields§
§venture: StringThe venture the client speaks for, from the document.
package_name: StringThe npm package name the files implement: @cratefield/client.
composition_hash: StringA sha256 over the generated files, for a reproducible-publish check: the same document always generates the same bytes, so the same hash.
files: Vec<GeneratedFile>Every file to write, in a stable order. Paths are relative to the
package root (src/index.ts, not ./src/index.ts).
Trait Implementations§
Source§impl Clone for GeneratedPackage
impl Clone for GeneratedPackage
Source§impl Debug for GeneratedPackage
impl Debug for GeneratedPackage
impl Eq for GeneratedPackage
Source§impl PartialEq for GeneratedPackage
impl PartialEq for GeneratedPackage
impl StructuralPartialEq for GeneratedPackage
Auto Trait Implementations§
impl Freeze for GeneratedPackage
impl RefUnwindSafe for GeneratedPackage
impl Send for GeneratedPackage
impl Sync for GeneratedPackage
impl Unpin for GeneratedPackage
impl UnsafeUnpin for GeneratedPackage
impl UnwindSafe for GeneratedPackage
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.