pub struct EnvRequestWs {
pub host: String,
pub ip: Option<String>,
pub headers: HashMap<String, String>,
pub payload: Option<String>,
}Expand description
A WebSocket-based request, including connection metadata and payload.
Fields§
§host: StringHost header or domain from the websocket upgrade request.
ip: Option<String>Optional IP address of the connecting client.
headers: HashMap<String, String>Flattened headers at the moment of upgrade.
payload: Option<String>Optional string-based payload received.
Trait Implementations§
Source§impl Clone for EnvRequestWs
impl Clone for EnvRequestWs
Source§fn clone(&self) -> EnvRequestWs
fn clone(&self) -> EnvRequestWs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnvRequestWs
impl Debug for EnvRequestWs
Source§impl<'de> Deserialize<'de> for EnvRequestWs
impl<'de> Deserialize<'de> for EnvRequestWs
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
Auto Trait Implementations§
impl Freeze for EnvRequestWs
impl RefUnwindSafe for EnvRequestWs
impl Send for EnvRequestWs
impl Sync for EnvRequestWs
impl Unpin for EnvRequestWs
impl UnsafeUnpin for EnvRequestWs
impl UnwindSafe for EnvRequestWs
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