pub trait QBReadable: QBItem {
// Required method
fn can_read(&self) -> bool;
}Expand description
Trait for entities that can be read from QuickBooks by ID.
This trait is automatically implemented for all QBItem types and provides
the ability to read entities from QuickBooks using their unique identifier.
§Default Implementation
The default implementation checks if the entity has an ID field, which is required for read operations.
§Examples
use quickbooks_types::{Customer, QBReadable};
let mut customer = Customer::default();
customer.id = Some("123".to_string());
// Can read because it has an ID
assert!(customer.can_read());Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.