pub struct SchemaSourceFile {
pub archive_path: String,
pub bytes: Vec<u8>,
}Expand description
One source file destined for the archive’s .memstead/schema/ tree.
archive_path is the relative path inside the archive (e.g.
"schema.yaml" or "types/spec.yaml"). Callers prefix it with
whatever root they want (the archive writer uses ".memstead/schema/");
the canonical re-pack uses the same prefix so byte-identical
archives round-trip.
Fields§
§archive_path: String§bytes: Vec<u8>Trait Implementations§
Source§impl Clone for SchemaSourceFile
impl Clone for SchemaSourceFile
Source§fn clone(&self) -> SchemaSourceFile
fn clone(&self) -> SchemaSourceFile
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 moreAuto Trait Implementations§
impl Freeze for SchemaSourceFile
impl RefUnwindSafe for SchemaSourceFile
impl Send for SchemaSourceFile
impl Sync for SchemaSourceFile
impl Unpin for SchemaSourceFile
impl UnsafeUnpin for SchemaSourceFile
impl UnwindSafe for SchemaSourceFile
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