QBFullUpdatable

Trait QBFullUpdatable 

Source
pub trait QBFullUpdatable {
    // Required method
    fn can_full_update(&self) -> bool;
}
Expand description

Trait for entities that support full update operations.

Full updates require sending the complete entity data to QuickBooks, replacing all fields with the provided values. This is in contrast to sparse updates which only update specified fields.

§Required Methods

  • can_full_update(): Returns true if the entity can be fully updated

§Implementation Notes

Typically requires:

  • Entity has been read from QuickBooks (has ID and sync token)
  • Entity meets creation requirements (has required fields)
  • Some entities may have additional validation rules

§Examples

use quickbooks_types::{Customer, QBFullUpdatable};

let mut customer = Customer::default();
customer.id = Some("123".to_string());
customer.sync_token = Some("2".to_string());
customer.display_name = Some("John Doe".to_string());

// Check if can be fully updated
if customer.can_full_update() {
    // Proceed with full update
}

Required Methods§

Implementors§