objets_metier_rs 1.0.2

Bibliothèque Rust moderne et sûre pour l'API COM Objets Métier Sage 100c - Production Ready
//! Traits communs pour les factories du module comptable
//!
//! Ce module définit des traits génériques pour standardiser les interfaces des factories
//! et permettre une programmation plus abstraite et réutilisable.
//!
//! # Organisation
//!
//! - `factory_read` - Trait pour la lecture d'entités (List, Query)
//! - `factory_read_by` - Trait pour la lecture par clé spécifique (ReadNumero, ReadIntitule, etc.)
//! - `factory_create` - Trait pour la création d'entités
//! - `factory_syncable` - Trait pour la synchronisation (QuerySynchro)
//! - `info_libre_capable` - Trait pour les informations libres
//!
//! # Exemple d'utilisation
//!
//! ```rust,ignore
//! use objets_metier_rs::wrappers::cpta::traits::FactoryRead;
//!
//! fn afficher_tous<F, T>(factory: &F) -> SageResult<()>
//! where
//!     F: FactoryRead<T>,
//!     T: std::fmt::Debug,
//! {
//!     let items = factory.list()?;
//!     for item in items {
//!         println!("{:?}", item);
//!     }
//!     Ok(())
//! }
//! ```

mod factory_create;
mod factory_read;
mod factory_read_by;
mod factory_syncable;
mod info_libre_capable;

pub use factory_create::FactoryCreate;
pub use factory_read::FactoryRead;
pub use factory_read_by::{
    FactoryReadBy, FactoryReadByCode, FactoryReadByIntitule, FactoryReadByNumero,
};
pub use factory_syncable::FactorySyncable;
pub use info_libre_capable::InfoLibreCapable;