files_sdk/prelude.rs
1//! Convenient re-exports for common types and traits
2//!
3//! This module provides a convenient way to import the most commonly used types
4//! and traits from the Files.com SDK. It follows the Rust convention of providing
5//! a `prelude` module for frequently-used items.
6//!
7//! # Usage
8//!
9//! ```rust
10//! use files_sdk::prelude::*;
11//!
12//! // Now you have access to all common types without individual imports
13//! # fn example() -> Result<()> {
14//! let client = FilesClient::builder()
15//! .api_key("your-api-key")
16//! .build()?;
17//!
18//! let file_handler = FileHandler::new(client.clone());
19//! # Ok(())
20//! # }
21//! ```
22
23// Core client and error types
24pub use crate::client::{FilesClient, FilesClientBuilder};
25pub use crate::error::{FilesError, Result};
26
27// Common entity types
28pub use crate::types::{FileEntity, FileUploadPartEntity, FolderEntity, PaginationInfo};
29
30// Progress tracking
31pub use crate::progress::{Progress, ProgressCallback};
32
33// Most commonly used handlers
34pub use crate::files::{FileActionHandler, FileHandler, FolderHandler};
35pub use crate::users::{ApiKeyHandler, GroupHandler, SessionHandler, UserHandler};
36
37// Sharing
38pub use crate::sharing::{BundleHandler, RequestHandler};
39
40// Automation
41pub use crate::automation::{AutomationHandler, BehaviorHandler};