pub struct ProfileIo {
pub raw: BTreeMap<String, String>,
pub snapshot: BTreeMap<String, String>,
pub source_dir: Option<PathBuf>,
pub flavor: Flavor,
pub jobs_form: Option<JobsForm>,
pub routes_at_top: bool,
pub borrowed_from: Option<PathBuf>,
pub lenders: Vec<String>,
}Expand description
Per-profile bookkeeping: what a decompile needs to reuse bytes and to know what “unchanged” means. Never part of the world.
Fields§
§raw: BTreeMap<String, String>Raw text of every owned file read.
snapshot: BTreeMap<String, String>Canonical JSON of each artifact’s record as loaded.
source_dir: Option<PathBuf>Where the profile was read from.
flavor: FlavorThe flavor it was read as; only our own bytes may be written back verbatim.
jobs_form: Option<JobsForm>The jobs file’s form.
routes_at_top: boolWhether profile_routes sat at the top level (else under gateway).
borrowed_from: Option<PathBuf>A Hermes profile that borrowed its partition from the root store.
lenders: Vec<String>The named profiles that borrowed from this root store.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfileIo
impl RefUnwindSafe for ProfileIo
impl Send for ProfileIo
impl Sync for ProfileIo
impl Unpin for ProfileIo
impl UnsafeUnpin for ProfileIo
impl UnwindSafe for ProfileIo
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