pub struct UsageAnalyticsGrant {
pub datastore: Option<bool>,
pub export: Option<bool>,
pub retention_days: Option<i32>,
}Fields§
§datastore: Option<bool>Datastore is whether the plan may read GET /v1/usage/analytics at all. The free floor is false, and that is what a catalog outage resolves to.
export: Option<bool>Export is whether the plan may export the analytics it can read.
retention_days: Option<i32>RetentionDays is how far back the plan may read. GET /v1/usage/analytics clamps a custom window’s start to this, so an older start returns the clamped window rather than an error.
Implementations§
Source§impl UsageAnalyticsGrant
impl UsageAnalyticsGrant
pub fn new() -> UsageAnalyticsGrant
Trait Implementations§
Source§impl Clone for UsageAnalyticsGrant
impl Clone for UsageAnalyticsGrant
Source§fn clone(&self) -> UsageAnalyticsGrant
fn clone(&self) -> UsageAnalyticsGrant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UsageAnalyticsGrant
impl Debug for UsageAnalyticsGrant
Source§impl Default for UsageAnalyticsGrant
impl Default for UsageAnalyticsGrant
Source§fn default() -> UsageAnalyticsGrant
fn default() -> UsageAnalyticsGrant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageAnalyticsGrant
impl<'de> Deserialize<'de> for UsageAnalyticsGrant
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
Source§impl PartialEq for UsageAnalyticsGrant
impl PartialEq for UsageAnalyticsGrant
Source§impl Serialize for UsageAnalyticsGrant
impl Serialize for UsageAnalyticsGrant
impl StructuralPartialEq for UsageAnalyticsGrant
Auto Trait Implementations§
impl Freeze for UsageAnalyticsGrant
impl RefUnwindSafe for UsageAnalyticsGrant
impl Send for UsageAnalyticsGrant
impl Sync for UsageAnalyticsGrant
impl Unpin for UsageAnalyticsGrant
impl UnsafeUnpin for UsageAnalyticsGrant
impl UnwindSafe for UsageAnalyticsGrant
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