Commit Graph

29 Commits

Author SHA1 Message Date
Dirkjan Ochtman 4aae031f44 Bump instant-xml to 0.4 2023-10-25 22:59:40 +02:00
Dirkjan Ochtman c0e58dec04 Warn when not using Self 2023-04-14 12:40:54 +02:00
Kim Minh Kaplan 1b6a774232 Order derive implementations alphabetically. 2023-04-03 13:18:58 +02:00
Kim Minh Kaplan 1451ffb8e5 Make contact's organization, province, postal code and voice optional.
This changes the signature for `contact::Address::new`,
`contact::ContactCreate::new` and the type of fields
`contact::InfoData::voice` and `contact::ContactCreateRequest::voice`.

Fixes issue #13.
2023-04-03 13:18:58 +02:00
Dirkjan Ochtman 96268d9528 Use enum type to represent contact::Status 2023-03-02 16:42:44 +01:00
Dirkjan Ochtman ef2abd64c6 Clean up XML entities in doc strings 2023-03-02 16:26:12 +01:00
Dirkjan Ochtman 3905881b55 Update README and clean up documentation 2023-03-02 15:30:22 +01:00
Dirkjan Ochtman 9aae46dd5d Move module.rs files into module/mod.rs
This style puts the root modules closer to the contained modules,
which better aligns the on-disk structure with the module hierarchy.
2023-02-28 17:04:58 +01:00
Dirkjan Ochtman 844f84dbef Align response type names with XML 2023-02-28 17:04:58 +01:00
Dirkjan Ochtman 3829ed77fa Switch from quick-xml to instant-xml 2023-02-28 17:04:58 +01:00
Dirkjan Ochtman a34dbdcf82 Apply clippy suggestions 2022-11-29 22:43:10 +08:00
Dirkjan Ochtman 406f63e02e Update to work around deprecated chrono API 2022-11-29 22:43:10 +08:00
Dirkjan Ochtman dd5fbc60ce Simplify response tests with a helper 2022-03-22 16:47:12 +08:00
Dirkjan Ochtman dd07ecc4b8 Externalize handling of command serialization 2022-03-22 16:47:12 +08:00
Dirkjan Ochtman 7e0a51bebb Use DateTime types where possible 2022-02-25 00:12:48 +08:00
Dirkjan Ochtman 5fb32978bd Improve check request API types by redirecting serialization 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman fdec3f29fc Redirect CheckResponse deserialization to improve interface 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman a5d6643d6f Share CheckResponse type with contacts 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman a6dfe70361 Use bool for availability for contact/host resources as well 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman 0c36d8add3 Use an enum for result codes 2022-01-27 17:10:28 +08:00
Dirkjan Ochtman 17d5bd90e9 Use &str or Cow<'a, str> in place of String 2021-12-20 22:08:55 +08:00
Dirkjan Ochtman 99701608a2 Replace Vec with slice where possible 2021-12-20 22:08:55 +08:00
Dirkjan Ochtman d4f4949cd8 Store a Cow<'a, str> in StringValue
And parametrize all serialize-only types with a lifetime such that
building requests no longer requires unnecessary allocations.
2021-12-20 22:08:55 +08:00
Dirkjan Ochtman a5f57fa836 Use &'static str for namespace URLs in serialize types 2021-12-20 22:08:55 +08:00
Dirkjan Ochtman b0595511e4 Remove unnecessary Deserialize/Serialize derives 2021-12-20 22:08:55 +08:00
Dirkjan Ochtman 5664276133 Remove serde aliases from types that don't implement Deserialize 2021-12-20 22:08:55 +08:00
Dirkjan Ochtman 3935413b70 Move contact-related types from common to contact 2021-12-15 23:40:56 +08:00
Dirkjan Ochtman 93f8e0e8c8 Remove type aliases for ContactStatus 2021-12-15 23:40:56 +08:00
Dirkjan Ochtman 6695a20a18 Remove now unnecessary workspace 2021-12-13 00:19:03 +08:00