pub struct DeployHistoryStore {
pub dir: PathBuf,
}Fields§
§dir: PathBufImplementations§
Source§impl DeployHistoryStore
impl DeployHistoryStore
pub fn new(dir: impl Into<PathBuf>) -> Self
pub fn index_path(&self) -> PathBuf
pub fn load_index(&self) -> Result<DeployHistoryIndex>
pub fn write_record(&self, record: &DeployHistoryRecord) -> Result<PathBuf>
pub fn latest_status( &self, target: &str, env: &str, ) -> Result<Option<HistoryEntry>>
pub fn list( &self, target: &str, env: &str, limit: usize, ) -> Result<Vec<HistoryEntry>>
Auto Trait Implementations§
impl Freeze for DeployHistoryStore
impl RefUnwindSafe for DeployHistoryStore
impl Send for DeployHistoryStore
impl Sync for DeployHistoryStore
impl Unpin for DeployHistoryStore
impl UnsafeUnpin for DeployHistoryStore
impl UnwindSafe for DeployHistoryStore
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