Skip to content

Commit

Permalink
Add support for SyncFolderItems and partial support for GetItem (#7)
Browse files Browse the repository at this point in the history
Add support for SyncFolderItems/partial support for GetItem.

The Item type only currently has support for Messages, so GetItem
requests for non-Message items will fail during deserialization.
  • Loading branch information
leftmostcat authored May 9, 2024
1 parent cad3dd7 commit d55eab6
Show file tree
Hide file tree
Showing 10 changed files with 913 additions and 29 deletions.
73 changes: 55 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ edition = "2021"
log = { version = "0.4.21", features = ["std"] }
quick-xml = { version = "0.31.0", features = ["serde", "serialize"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_path_to_error = "0.1.11"
thiserror = "1.0.57"
xml_struct = { git = "https://github.com/thunderbird/xml-struct-rs.git", rev = "ace285b5848750064d4f5ad30ddc0c0bff53d8a9", version = "0.1.0" }
time = { version = "0.3.23", features = ["parsing", "serde"] }
xml_struct = { git = "https://github.com/thunderbird/xml-struct-rs.git", rev = "0374b50878596a08ef9c9ac2dfcc7325b9c39b83", version = "0.1.0" }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub enum Error {
Serialize(#[from] xml_struct::Error),

#[error("failed to deserialize structure from XML")]
Deserialize(#[from] quick_xml::DeError),
Deserialize(#[from] serde_path_to_error::Error<quick_xml::DeError>),

#[error("invalid XML document")]
InvalidXml(#[from] quick_xml::Error),
Expand Down
2 changes: 2 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ pub use operations::*;
pub mod soap;

pub mod get_folder;
pub mod get_item;
pub mod sync_folder_hierarchy;
pub mod sync_folder_items;
Loading

0 comments on commit d55eab6

Please sign in to comment.