pub struct DecodedClientRoutingLabel {
pub client_sdk_version: u16,
pub is_ipv6: bool,
pub client_subnet: [u8; 8],
pub subnet_mask: u8,
pub cgid: u64,
}
Expand description
Struct containing decoded client routing label values.
Consist of 5 properties: client_sdk_version
, is_ipv6
, client_subnet
,
subnet_mask
, and cgid
. Each property maps directly to a value in
ClientRoutingLabel
, with the minimal type needed to represent that data.
Only the least significant bits will be kept in the case value
can’t fit in
num_bits
.
§Examples:
use amazon_cloudfront_client_routing_lib::client_routing_label::DecodedClientRoutingLabel;
let client_sdk_version: u16 = 1;
let is_ipv6: bool = false;
let client_subnet: [u8; 8] = [1, 2, 3, 0, 0, 0, 0, 0];
let subnet_mask: u8 = 24;
let cgid: u64 = 15151312625956013430;
let decoded_client_routing_label = DecodedClientRoutingLabel {
client_sdk_version,
is_ipv6,
client_subnet,
subnet_mask,
cgid
};
Fields§
§client_sdk_version: u16
§is_ipv6: bool
§client_subnet: [u8; 8]
§subnet_mask: u8
§cgid: u64
Trait Implementations§
Source§impl Clone for DecodedClientRoutingLabel
impl Clone for DecodedClientRoutingLabel
Source§fn clone(&self) -> DecodedClientRoutingLabel
fn clone(&self) -> DecodedClientRoutingLabel
Returns a copy 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 DecodedClientRoutingLabel
impl Debug for DecodedClientRoutingLabel
impl Copy for DecodedClientRoutingLabel
Auto Trait Implementations§
impl Freeze for DecodedClientRoutingLabel
impl RefUnwindSafe for DecodedClientRoutingLabel
impl Send for DecodedClientRoutingLabel
impl Sync for DecodedClientRoutingLabel
impl Unpin for DecodedClientRoutingLabel
impl UnwindSafe for DecodedClientRoutingLabel
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