pub struct GetUsageInfoResponse {
pub account_monthly_listening: u32,
pub device_monthly_listening: u32,
pub monthly_cap_hours: u32,
pub monthly_cap_warning_percent: u32,
pub monthly_cap_warning_repeat_percent: u32,
pub is_monthly_payer: bool,
pub is_capped: bool,
pub listening_timestamp: Option<u32>,
}
Expand description
| Name | Type | Description | | accountMonthlyListening | int | | | deviceMonthlyListening | int | | | monthlyCapHours | int | | | monthlyCapWarningPercent | int | | | monthlyCapWarningRepeatPercent | int | | | isMonthlyPayer | bool | | | isCapped | bool | | | listeningTimestamp | int | |
{
"stat": "ok",
"result": {
"monthlyCapWarningRepeatPercent": 10,
"monthlyCapHours": 320,
"deviceMonthlyListening": 0,
"isMonthlyPayer": false,
"isCapped": false,
"monthlyCapWarningPercent": 85,
"accountMonthlyListening": 0
}
}
Fields§
§account_monthly_listening: u32
Number of hours spent listening this month on this account.
device_monthly_listening: u32
Number of hours spent listening from this device this month.
monthly_cap_hours: u32
Maximum number of allowed hours per month.
monthly_cap_warning_percent: u32
At what percentage of monthly allowed hours the user should be warned.
monthly_cap_warning_repeat_percent: u32
At what percentage of monthly allowed hours the user should get a second warning.
is_monthly_payer: bool
Whether the account is billed monthly.
is_capped: bool
Whether the account has a usage cap.
listening_timestamp: Option<u32>
Unknown.
Trait Implementations§
Source§impl Clone for GetUsageInfoResponse
impl Clone for GetUsageInfoResponse
Source§fn clone(&self) -> GetUsageInfoResponse
fn clone(&self) -> GetUsageInfoResponse
Returns a duplicate 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 GetUsageInfoResponse
impl Debug for GetUsageInfoResponse
Source§impl<'de> Deserialize<'de> for GetUsageInfoResponse
impl<'de> Deserialize<'de> for GetUsageInfoResponse
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 GetUsageInfoResponse
impl RefUnwindSafe for GetUsageInfoResponse
impl Send for GetUsageInfoResponse
impl Sync for GetUsageInfoResponse
impl Unpin for GetUsageInfoResponse
impl UnwindSafe for GetUsageInfoResponse
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