Skip to main content

Crate jmap_sharing

Crate jmap_sharing 

Source
Expand description

JMAP Sharing (RFC 9670): umbrella crate re-exporting the component crates, so one dependency covers them.

The component crates version in lockstep with this one.

use jmap_sharing::types::{JMAP_PRINCIPALS_URI, PrincipalsCapability};

assert_eq!(JMAP_PRINCIPALS_URI, "urn:ietf:params:jmap:principals");
let cap: PrincipalsCapability =
    serde_json::from_str(r#"{"currentUserPrincipalId": "P1"}"#).unwrap();
assert!(cap.current_user_principal_id.is_some());

Re-exportsยง

pub use jmap_sharing_types as types;
pub use jmap_sharing_client as client;client
pub use jmap_sharing_server as server;server