pub struct ApiAccount {
pub status: Option<String>,
pub contact: Option<Vec<String>>,
pub termsOfServiceAgreed: Option<bool>,
pub orders: Option<String>,
}
Fields§
§status: Option<String>
§contact: Option<Vec<String>>
§termsOfServiceAgreed: Option<bool>
§orders: Option<String>
Implementations§
Source§impl ApiAccount
impl ApiAccount
pub fn is_status_valid(&self) -> bool
pub fn is_status_deactivated(&self) -> bool
pub fn is_status_revoked(&self) -> bool
pub fn termsOfServiceAgreed(&self) -> bool
Trait Implementations§
Source§impl Clone for ApiAccount
impl Clone for ApiAccount
Source§fn clone(&self) -> ApiAccount
fn clone(&self) -> ApiAccount
Returns a copy 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 ApiAccount
impl Debug for ApiAccount
Source§impl Default for ApiAccount
impl Default for ApiAccount
Source§fn default() -> ApiAccount
fn default() -> ApiAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiAccount
impl<'de> Deserialize<'de> for ApiAccount
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 ApiAccount
impl PartialEq for ApiAccount
Source§impl Serialize for ApiAccount
impl Serialize for ApiAccount
impl Eq for ApiAccount
impl StructuralPartialEq for ApiAccount
Auto Trait Implementations§
impl Freeze for ApiAccount
impl RefUnwindSafe for ApiAccount
impl Send for ApiAccount
impl Sync for ApiAccount
impl Unpin for ApiAccount
impl UnwindSafe for ApiAccount
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