1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! High-level Proton Drive client (Rust port).
//!
//! Built on top of [`proton_sdk`]. Milestone 1 covers session-backed read
//! operations: resolving the My Files folder, fetching node metadata and
//! enumerating folder children.
//!
//! ```no_run
//! # async fn run() -> proton_sdk::error::Result<()> {
//! use proton_sdk::config::ProtonClientConfiguration;
//! use proton_sdk::session::{PasswordMode, ProtonApiSession, ResumeParameters};
//! use proton_drive_rs::ProtonDriveClient;
//!
//! let config = ProtonClientConfiguration::new("external-drive-myapp@0.1.0-alpha");
//! let session = ProtonApiSession::resume(config, ResumeParameters {
//! session_id: "uid".into(),
//! username: "user@proton.me".into(),
//! user_id: "user-id".into(),
//! access_token: "access".into(),
//! refresh_token: "refresh".into(),
//! scopes: vec![],
//! is_waiting_for_second_factor_code: false,
//! password_mode: PasswordMode::Single,
//! })?;
//!
//! let drive = ProtonDriveClient::new(&session, b"mailbox-password".to_vec());
//! let root = drive.get_my_files_folder().await?;
//! let child_uids = drive.enumerate_folder_children_node_uids(&root.uid).await?;
//! for child in drive.enumerate_nodes(&child_uids).await? {
//! println!("{} ({:?})", child.name, child.kind);
//! }
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ProtonDriveClient;
pub use ;
pub use ;
pub use ;
pub use ;
pub use KeySalt;
pub use ;
pub use ;
pub use proton_sdk;