pub struct Voucher {
pub id: String,
pub code: String,
pub used: bool,
pub duration_minutes: Option<u32>,
pub data_limit_mb: Option<u64>,
pub bandwidth_limit_down: Option<u64>,
pub bandwidth_limit_up: Option<u64>,
pub note: Option<String>,
pub created_at: Option<String>,
pub used_at: Option<String>,
}Expand description
Hotspot voucher for guest network access.
Fields§
§id: StringUnique voucher identifier.
code: StringHuman-readable voucher code for guest entry.
used: boolWhether the voucher has been redeemed.
duration_minutes: Option<u32>Access duration in minutes once activated.
data_limit_mb: Option<u64>Data usage limit in megabytes.
bandwidth_limit_down: Option<u64>Download bandwidth limit in kbps.
bandwidth_limit_up: Option<u64>Upload bandwidth limit in kbps.
note: Option<String>Optional admin note for the voucher.
created_at: Option<String>ISO 8601 timestamp when the voucher was created.
used_at: Option<String>ISO 8601 timestamp when the voucher was redeemed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Voucher
impl<'de> Deserialize<'de> for Voucher
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
impl StructuralPartialEq for Voucher
Auto Trait Implementations§
impl Freeze for Voucher
impl RefUnwindSafe for Voucher
impl Send for Voucher
impl Sync for Voucher
impl Unpin for Voucher
impl UnsafeUnpin for Voucher
impl UnwindSafe for Voucher
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