mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 07:02:24 +00:00
store: move timestamp to calendar
This commit is contained in:
@@ -21,13 +21,13 @@ use crate::{
|
|||||||
struct TimeRangeElement {
|
struct TimeRangeElement {
|
||||||
#[serde(
|
#[serde(
|
||||||
rename = "@start",
|
rename = "@start",
|
||||||
deserialize_with = "rustical_store::timestamp::deserialize_utc_datetime",
|
deserialize_with = "rustical_store::calendar::deserialize_utc_datetime",
|
||||||
default
|
default
|
||||||
)]
|
)]
|
||||||
start: Option<DateTime<Utc>>,
|
start: Option<DateTime<Utc>>,
|
||||||
#[serde(
|
#[serde(
|
||||||
rename = "@end",
|
rename = "@end",
|
||||||
deserialize_with = "rustical_store::timestamp::deserialize_utc_datetime",
|
deserialize_with = "rustical_store::calendar::deserialize_utc_datetime",
|
||||||
default
|
default
|
||||||
)]
|
)]
|
||||||
end: Option<DateTime<Utc>>,
|
end: Option<DateTime<Utc>>,
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
use crate::{
|
use super::{parse_duration, CalDateTime};
|
||||||
timestamp::{parse_duration, CalDateTime},
|
use crate::Error;
|
||||||
Error,
|
|
||||||
};
|
|
||||||
use chrono::Duration;
|
use chrono::Duration;
|
||||||
use ical::{
|
use ical::{
|
||||||
generator::IcalEvent,
|
generator::IcalEvent,
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ mod calendar;
|
|||||||
mod event;
|
mod event;
|
||||||
mod journal;
|
mod journal;
|
||||||
mod object;
|
mod object;
|
||||||
|
mod timestamp;
|
||||||
mod todo;
|
mod todo;
|
||||||
|
|
||||||
pub use calendar::*;
|
pub use calendar::*;
|
||||||
pub use event::*;
|
pub use event::*;
|
||||||
pub use journal::*;
|
pub use journal::*;
|
||||||
pub use object::*;
|
pub use object::*;
|
||||||
|
pub use timestamp::*;
|
||||||
pub use todo::*;
|
pub use todo::*;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use super::{event::EventObject, journal::JournalObject, todo::TodoObject};
|
use super::{CalDateTime, EventObject, JournalObject, TodoObject};
|
||||||
use crate::{timestamp::CalDateTime, Error};
|
use crate::Error;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ical::parser::{ical::component::IcalTimeZone, Component};
|
use ical::parser::{ical::component::IcalTimeZone, Component};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use crate::Error;
|
use crate::Error;
|
||||||
use anyhow::{anyhow, Result};
|
|
||||||
use chrono::{DateTime, Duration, NaiveDate, NaiveDateTime, NaiveTime, Utc};
|
use chrono::{DateTime, Duration, NaiveDate, NaiveDateTime, NaiveTime, Utc};
|
||||||
use chrono_tz::Tz;
|
use chrono_tz::Tz;
|
||||||
use ical::{
|
use ical::{
|
||||||
@@ -2,7 +2,6 @@ pub mod addressbook;
|
|||||||
pub mod addressbook_store;
|
pub mod addressbook_store;
|
||||||
pub mod calendar_store;
|
pub mod calendar_store;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod timestamp;
|
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
pub mod auth;
|
pub mod auth;
|
||||||
pub mod calendar;
|
pub mod calendar;
|
||||||
|
|||||||
Reference in New Issue
Block a user