Struct ricq_core::pb::msg::HttpConnHead

source ·
pub struct HttpConnHead {
Show 25 fields pub uin: Option<u64>, pub command: Option<u32>, pub sub_command: Option<u32>, pub seq: Option<u32>, pub version: Option<u32>, pub retry_times: Option<u32>, pub client_type: Option<u32>, pub pub_no: Option<u32>, pub local_id: Option<u32>, pub time_zone: Option<u32>, pub client_ip: Option<u32>, pub client_port: Option<u32>, pub qzhttp_ip: Option<u32>, pub qzhttp_port: Option<u32>, pub spp_ip: Option<u32>, pub spp_port: Option<u32>, pub flag: Option<u32>, pub key: Option<Vec<u8>>, pub compress_type: Option<u32>, pub origin_size: Option<u32>, pub error_code: Option<u32>, pub redirect: Option<RedirectMsg>, pub command_id: Option<u32>, pub service_cmdid: Option<u32>, pub oidbhead: Option<TransOidbHead>,
}

Fields§

§uin: Option<u64>§command: Option<u32>§sub_command: Option<u32>§seq: Option<u32>§version: Option<u32>§retry_times: Option<u32>§client_type: Option<u32>§pub_no: Option<u32>§local_id: Option<u32>§time_zone: Option<u32>§client_ip: Option<u32>§client_port: Option<u32>§qzhttp_ip: Option<u32>§qzhttp_port: Option<u32>§spp_ip: Option<u32>§spp_port: Option<u32>§flag: Option<u32>§key: Option<Vec<u8>>§compress_type: Option<u32>§origin_size: Option<u32>§error_code: Option<u32>§redirect: Option<RedirectMsg>§command_id: Option<u32>§service_cmdid: Option<u32>§oidbhead: Option<TransOidbHead>

Implementations§

Returns the value of uin, or the default value if uin is unset.

Returns the value of command, or the default value if command is unset.

Returns the value of sub_command, or the default value if sub_command is unset.

Returns the value of seq, or the default value if seq is unset.

Returns the value of version, or the default value if version is unset.

Returns the value of retry_times, or the default value if retry_times is unset.

Returns the value of client_type, or the default value if client_type is unset.

Returns the value of pub_no, or the default value if pub_no is unset.

Returns the value of local_id, or the default value if local_id is unset.

Returns the value of time_zone, or the default value if time_zone is unset.

Returns the value of client_ip, or the default value if client_ip is unset.

Returns the value of client_port, or the default value if client_port is unset.

Returns the value of qzhttp_ip, or the default value if qzhttp_ip is unset.

Returns the value of qzhttp_port, or the default value if qzhttp_port is unset.

Returns the value of spp_ip, or the default value if spp_ip is unset.

Returns the value of spp_port, or the default value if spp_port is unset.

Returns the value of flag, or the default value if flag is unset.

Returns the value of key, or the default value if key is unset.

Returns the value of compress_type, or the default value if compress_type is unset.

Returns the value of origin_size, or the default value if origin_size is unset.

Returns the value of error_code, or the default value if error_code is unset.

Returns the value of command_id, or the default value if command_id is unset.

Returns the value of service_cmdid, or the default value if service_cmdid is unset.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns the encoded length of the message without a length delimiter.
Clears the message, resetting all fields to their default.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.