Struct db_up::ChangelogFile
source · pub struct ChangelogFile { /* private fields */ }
Expand description
A changelog file
Implementations§
source§impl ChangelogFile
impl ChangelogFile
sourcepub fn from_path(path: &Path) -> Result<ChangelogFile, ChangelogError>
pub fn from_path(path: &Path) -> Result<ChangelogFile, ChangelogError>
Load ChangelogFile
from a given path
sourcepub fn from_string(
version: &str,
sql: &str
) -> Result<ChangelogFile, ChangelogError>
pub fn from_string( version: &str, sql: &str ) -> Result<ChangelogFile, ChangelogError>
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§fn cmp(&self, other: &ChangelogFile) -> Ordering
fn cmp(&self, other: &ChangelogFile) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChangelogFile> for ChangelogFile
impl PartialEq<ChangelogFile> for ChangelogFile
source§fn eq(&self, other: &ChangelogFile) -> bool
fn eq(&self, other: &ChangelogFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChangelogFile> for ChangelogFile
impl PartialOrd<ChangelogFile> for ChangelogFile
source§fn partial_cmp(&self, other: &ChangelogFile) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangelogFile) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ChangelogFile
Auto Trait Implementations§
impl RefUnwindSafe for ChangelogFile
impl Send for ChangelogFile
impl Sync for ChangelogFile
impl Unpin for ChangelogFile
impl UnwindSafe for ChangelogFile
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.