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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! Core data models for the application
//!
//! This module contains the primary data structures used throughout the application,
//! separated from the logic that operates on them.
//!
//! # Usage
//!
//! Import the models directly from this module:
//!
//! ```rust
//! use subconverter_rs::models::{Proxy, ProxyType};
//!
//! // Create a new proxy
//! let mut proxy = Proxy::default();
//! proxy.proxy_type = ProxyType::VMess;
//! proxy.hostname = "example.com".to_string();
//! proxy.port = 443;
//! ```
//!
//! Or use the re-exports from the crate root:
//!
//! ```rust
//! use subconverter_rs::{Proxy, ProxyType};
//!
//! // Create a new proxy
//! let mut proxy = Proxy::default();
//! proxy.proxy_type = ProxyType::VMess;
//! ```
//!
//! # Working with Option fields
//!
//! Many fields in the `Proxy` struct are wrapped in `Option`, which requires
//! special handling:
//!
//! ```rust
//! use subconverter_rs::Proxy;
//!
//! let proxy = Proxy::default();
//!
//! // Check if an Option<String> field is Some and not empty
//! if proxy.encrypt_method.as_ref().map_or(false, |s| !s.is_empty()) {
//! println!("Encryption method: {}", proxy.encrypt_method.as_ref().unwrap());
//! }
//!
//! // Provide a default value
//! let method = proxy.encrypt_method.as_deref().unwrap_or("none");
//! ```
//!
//! See the examples directory for more detailed usage examples.
pub use ExtraSettings;
pub use ;
pub use ;
pub use SubconverterTarget;
pub use ;
pub use ;
// Re-export constants to module scope for use by other modules
// Default proxy group names
pub use ;
pub use ;