pub struct PlannedAdd {
pub service: String,
pub result: AddResult,
pub exposure: Exposure,
pub auth_kind: Option<AuthKind>,
pub registry_name: String,
pub repo_dir: PathBuf,
pub notes: Vec<String>,
}Expand description
A planned add, carrying everything a frontend needs to record and execute it without re-deriving anything.
Fields§
§service: StringPlain service name (ref resolved).
result: AddResult§exposure: Exposure§auth_kind: Option<AuthKind>§registry_name: String§repo_dir: PathBuf§notes: Vec<String>Informational decisions made during planning (e.g. auto-derived URL). Frontends surface these; silence would hide behavior.
Implementations§
Source§impl PlannedAdd
impl PlannedAdd
Sourcepub fn record_pending(&self) -> Result<()>
pub fn record_pending(&self) -> Result<()>
Record the install as pending before executing steps, so a failed run is visible to cleanup. Same data in every frontend.
Auto Trait Implementations§
impl Freeze for PlannedAdd
impl RefUnwindSafe for PlannedAdd
impl Send for PlannedAdd
impl Sync for PlannedAdd
impl Unpin for PlannedAdd
impl UnsafeUnpin for PlannedAdd
impl UnwindSafe for PlannedAdd
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