pub struct Class {
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub name: Option<String>,
pub parent_ref: Option<NtRef>,
pub sub_class: Option<bool>,
pub active: Option<bool>,
pub fully_qualified_name: Option<String>,
}Expand description
Class
Represents a classification or category that can be applied to transactions and entities in QuickBooks Online. Classes allow for tracking and reporting on different segments of a business, such as departments, locations, or product lines. A class can have a hierarchical structure with parent and child classes.
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/class
Fields§
§id: Option<String>The unique ID of the entity
sync_token: Option<String>The unique sync token of the entity, used for concurrency control
meta_data: Option<MetaData>Metadata about the entity
name: Option<String>Name of the class
parent_ref: Option<NtRef>Reference to the parent class if this is a subclass
sub_class: Option<bool>Indicates whether this object is a subclass
active: Option<bool>Indicates if the class is active
fully_qualified_name: Option<String>Fully qualified name of the class (e.g., Parent:SubClass)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
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 QBCreatable for Class
impl QBCreatable for Class
fn can_create(&self) -> bool
Source§impl QBFullUpdatable for Class
impl QBFullUpdatable for Class
fn can_full_update(&self) -> bool
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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