InsertMany function for create trait.
Changed path to DateTimeInterval. Changed lifetimes on derives with async_trait
This commit is contained in:
@ -20,7 +20,7 @@ impl DateTimeInterval {
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use chrono::{NaiveDateTime, Duration, Utc};
|
||||
/// use lib::time::common::DateTimeInterval;
|
||||
/// use lib::time::DateTimeInterval;
|
||||
///
|
||||
/// let start = Utc::now().naive_utc();
|
||||
/// let end = start + Duration::days(1);
|
||||
@ -30,7 +30,7 @@ impl DateTimeInterval {
|
||||
/// Illegal interval:
|
||||
/// ```
|
||||
/// use chrono::{NaiveDateTime, Utc};
|
||||
/// use lib::time::common::DateTimeInterval;
|
||||
/// use lib::time::DateTimeInterval;
|
||||
/// let start = Utc::now().naive_utc();
|
||||
/// let end = start;
|
||||
/// let interval = DateTimeInterval::new_safe(start, end);
|
||||
|
@ -1 +1,3 @@
|
||||
pub mod common;
|
||||
mod common;
|
||||
|
||||
pub use common::DateTimeInterval;
|
||||
|
Reference in New Issue
Block a user