pub struct DcOption {
pub ipv6: bool,
pub media_only: bool,
pub tcpo_only: bool,
pub cdn: bool,
pub static: bool,
pub this_port_only: bool,
pub id: i32,
pub ip_address: String,
pub port: i32,
pub secret: Option<Vec<u8>>,
}Expand description
Generated from:
dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true this_port_only:flags.5?true id:int ip_address:string port:int secret:flags.10?bytes = DcOptionFields§
§ipv6: bool§media_only: bool§tcpo_only: bool§cdn: bool§static: bool§this_port_only: bool§id: i32§ip_address: String§port: i32§secret: Option<Vec<u8>>Trait Implementations§
Source§impl Deserializable for DcOption
impl Deserializable for DcOption
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for DcOption
impl Identifiable for DcOption
Source§const CONSTRUCTOR_ID: u32 = 0x18b7a10d
const CONSTRUCTOR_ID: u32 = 0x18b7a10d
The constructor ID as specified in the TL schema.
Source§impl Serializable for DcOption
impl Serializable for DcOption
impl StructuralPartialEq for DcOption
Auto Trait Implementations§
impl Freeze for DcOption
impl RefUnwindSafe for DcOption
impl Send for DcOption
impl Sync for DcOption
impl Unpin for DcOption
impl UnsafeUnpin for DcOption
impl UnwindSafe for DcOption
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