pub struct PlanStore { /* private fields */ }Implementations§
Source§impl PlanStore
impl PlanStore
pub fn default_store() -> Self
pub fn new(plans_dir: PathBuf) -> Self
pub fn create( &self, profile_name: &str, profile: &ProfileConfig, proposal: PlanProposal, ttl_secs: u64, ) -> Result<StoredPlan, MacflyError>
pub fn load(&self, plan_id: &str) -> Result<StoredPlan, MacflyError>
pub fn list(&self) -> Result<Vec<StoredPlan>, MacflyError>
pub fn approve( &self, plan_id: &str, confirm_code: &str, ) -> Result<StoredPlan, MacflyError>
pub fn save(&self, plan: &StoredPlan) -> Result<(), MacflyError>
Auto Trait Implementations§
impl Forget for PlanStore
impl Freeze for PlanStore
impl Move for PlanStore
impl RefUnwindSafe for PlanStore
impl Send for PlanStore
impl Sync for PlanStore
impl Unpin for PlanStore
impl UnsafeUnpin for PlanStore
impl UnwindSafe for PlanStore
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