pub enum AccountUsageOutcome {
Ok {
snapshot: Box<UsageSnapshot>,
},
Error {
error: UsageErrorSummary,
},
}Expand description
One account’s outcome inside a UsageReport: partial failures never
discard the accounts that succeeded.
Variants§
Implementations§
Source§impl AccountUsageOutcome
impl AccountUsageOutcome
pub fn ok(snapshot: UsageSnapshot) -> Self
pub fn error(error: &UsageError) -> Self
pub fn snapshot(&self) -> Option<&UsageSnapshot>
Trait Implementations§
Source§impl Clone for AccountUsageOutcome
impl Clone for AccountUsageOutcome
Source§impl Debug for AccountUsageOutcome
impl Debug for AccountUsageOutcome
Source§impl<'de> Deserialize<'de> for AccountUsageOutcome
impl<'de> Deserialize<'de> for AccountUsageOutcome
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 AccountUsageOutcome
impl PartialEq for AccountUsageOutcome
Source§impl Serialize for AccountUsageOutcome
impl Serialize for AccountUsageOutcome
impl StructuralPartialEq for AccountUsageOutcome
Auto Trait Implementations§
impl Freeze for AccountUsageOutcome
impl RefUnwindSafe for AccountUsageOutcome
impl Send for AccountUsageOutcome
impl Sync for AccountUsageOutcome
impl Unpin for AccountUsageOutcome
impl UnsafeUnpin for AccountUsageOutcome
impl UnwindSafe for AccountUsageOutcome
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