pub struct CommittedFile {
pub commits: Vec<Commit>,
}Fields§
§commits: Vec<Commit>Implementations§
Source§impl CommittedFile
impl CommittedFile
pub fn load(dir: &Path) -> Result<Self>
pub fn add_commit(ctx: &SalmoContext, migration_id: &str) -> Result<Commit>
pub fn commits_hash(&self) -> HashMap<String, Commit>
pub fn contains_migration(&self, m: &Migration) -> bool
Trait Implementations§
Source§impl Clone for CommittedFile
impl Clone for CommittedFile
Source§fn clone(&self) -> CommittedFile
fn clone(&self) -> CommittedFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommittedFile
impl Debug for CommittedFile
Source§impl<'de> Deserialize<'de> for CommittedFile
impl<'de> Deserialize<'de> for CommittedFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommittedFile
impl RefUnwindSafe for CommittedFile
impl Send for CommittedFile
impl Sync for CommittedFile
impl Unpin for CommittedFile
impl UnwindSafe for CommittedFile
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