pub struct ChangelogFile { /* private fields */ }
Expand description
A changelog file
Implementations§
Source§impl ChangelogFile
impl ChangelogFile
Sourcepub fn from_path(path: &Path) -> Result<ChangelogFile>
pub fn from_path(path: &Path) -> Result<ChangelogFile>
Load ChangelogFile
from a given path
Sourcepub fn from_string(version: &str, sql: &str) -> Result<ChangelogFile>
pub fn from_string(version: &str, sql: &str) -> Result<ChangelogFile>
Create ChangelogFile
from a version and a string containing the contents
Sourcepub fn iter(&self) -> SqlStatementIterator ⓘ
pub fn iter(&self) -> SqlStatementIterator ⓘ
Create an iterator for the statements of this ChangelogFile
Trait Implementations§
Source§impl Clone for ChangelogFile
impl Clone for ChangelogFile
Source§fn clone(&self) -> ChangelogFile
fn clone(&self) -> ChangelogFile
Returns a copy 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 ChangelogFile
impl Debug for ChangelogFile
Source§impl Ord for ChangelogFile
impl Ord for ChangelogFile
Source§impl PartialEq for ChangelogFile
impl PartialEq for ChangelogFile
Source§impl PartialOrd for ChangelogFile
impl PartialOrd for ChangelogFile
impl Eq for ChangelogFile
Auto Trait Implementations§
impl Freeze for ChangelogFile
impl RefUnwindSafe for ChangelogFile
impl Send for ChangelogFile
impl Sync for ChangelogFile
impl Unpin for ChangelogFile
impl UnwindSafe for ChangelogFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.