pub struct Planned {
pub plan: PackPlan,
pub profile: PackProfile,
pub profiles: Profiles,
/* private fields */
}Expand description
A plan with the content it was made from, which is what build writes: the verdict, the
profile it was made with, and the selected blobs in shard order.
The examples below plan a repository holding main.rs and a logo.png whose content is
binary, with a distribution whose chat profile has limits and whose bare one has none.
use majordomus_cli::pack::{plan, Planned};
let planned: Planned = plan(&root, &share, Some("chat"));
assert_eq!(planned.profile.id, "chat");
assert_eq!(planned.plan.profile, planned.profile.id);Fields§
§plan: PackPlanThe verdict and the shape.
profile: PackProfileThe profile it was planned with.
profiles: ProfilesThe profiles it was chosen from, which verify what build writes; empty when the
profiles could not be read.
Auto Trait Implementations§
impl Freeze for Planned
impl RefUnwindSafe for Planned
impl Send for Planned
impl Sync for Planned
impl Unpin for Planned
impl UnsafeUnpin for Planned
impl UnwindSafe for Planned
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