pub struct VLessConfig {Show 16 fields
pub id: String,
pub address: String,
pub port: u16,
pub encryption: Option<String>,
pub flow: Option<String>,
pub security: Option<String>,
pub type: Option<String>,
pub host: Option<String>,
pub path: Option<String>,
pub sni: Option<String>,
pub fp: Option<String>,
pub pbk: Option<String>,
pub sid: Option<String>,
pub seed: Option<String>,
pub header_type: Option<String>,
pub remark: Option<String>,
}Expand description
VLess configuration structure
Represents a complete VLess protocol configuration with all supported parameters.
Fields§
§id: StringUser ID (UUID)
address: StringServer address
port: u16Server port
encryption: Option<String>Encryption method
flow: Option<String>Flow control (for XTLS)
security: Option<String>Security type (tls, xtls, reality, none)
type: Option<String>Network type (tcp, kcp, ws, h2, quic, grpc, multi)
host: Option<String>Host header
path: Option<String>Path (for ws/h2/grpc)
sni: Option<String>SNI (Server Name Indication)
fp: Option<String>Fingerprint
pbk: Option<String>Public key (for Reality)
sid: Option<String>Short ID (for Reality)
seed: Option<String>Seed (for mKCP)
header_type: Option<String>Header type
remark: Option<String>Remark/description
Trait Implementations§
Source§impl Clone for VLessConfig
impl Clone for VLessConfig
Source§fn clone(&self) -> VLessConfig
fn clone(&self) -> VLessConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VLessConfig
impl Debug for VLessConfig
Source§impl<'de> Deserialize<'de> for VLessConfig
impl<'de> Deserialize<'de> for VLessConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VLessConfig
impl PartialEq for VLessConfig
Source§impl Serialize for VLessConfig
impl Serialize for VLessConfig
impl Eq for VLessConfig
impl StructuralPartialEq for VLessConfig
Auto Trait Implementations§
impl Freeze for VLessConfig
impl RefUnwindSafe for VLessConfig
impl Send for VLessConfig
impl Sync for VLessConfig
impl Unpin for VLessConfig
impl UnsafeUnpin for VLessConfig
impl UnwindSafe for VLessConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more