#[non_exhaustive]pub struct GetDevicesReport {
pub start_date: String,
pub active_1_day: DevicesActive,
pub active_7_day: DevicesActive,
pub active_28_day: DevicesActive,
}
Available on crate feature
dbx_team
only.Expand description
Devices Report Result. Contains subsections for different time ranges of activity. Each of the items in each subsection of the storage report is an array of values, one value per day. If there is no data for a day, then the value will be None.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.start_date: String
First date present in the results as ‘YYYY-MM-DD’ or None.
active_1_day: DevicesActive
Report of the number of devices active in the last day.
active_7_day: DevicesActive
Report of the number of devices active in the last 7 days.
active_28_day: DevicesActive
Report of the number of devices active in the last 28 days.
Implementations§
Source§impl GetDevicesReport
impl GetDevicesReport
pub fn new( start_date: String, active_1_day: DevicesActive, active_7_day: DevicesActive, active_28_day: DevicesActive, ) -> Self
Trait Implementations§
Source§impl Clone for GetDevicesReport
impl Clone for GetDevicesReport
Source§fn clone(&self) -> GetDevicesReport
fn clone(&self) -> GetDevicesReport
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 GetDevicesReport
impl Debug for GetDevicesReport
Source§impl<'de> Deserialize<'de> for GetDevicesReport
impl<'de> Deserialize<'de> for GetDevicesReport
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GetDevicesReport> for BaseDfbReport
impl From<GetDevicesReport> for BaseDfbReport
Source§fn from(subtype: GetDevicesReport) -> Self
fn from(subtype: GetDevicesReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetDevicesReport
impl PartialEq for GetDevicesReport
Source§impl Serialize for GetDevicesReport
impl Serialize for GetDevicesReport
impl Eq for GetDevicesReport
impl StructuralPartialEq for GetDevicesReport
Auto Trait Implementations§
impl Freeze for GetDevicesReport
impl RefUnwindSafe for GetDevicesReport
impl Send for GetDevicesReport
impl Sync for GetDevicesReport
impl Unpin for GetDevicesReport
impl UnwindSafe for GetDevicesReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.