pub struct GeneralLedger { /* private fields */ }Implementations§
Source§impl GeneralLedger
impl GeneralLedger
pub fn create_account( &self, account_number: String, name: String, account_type: String, ) -> PhpResult<String>
pub fn get_account(&self, id: String) -> PhpResult<Option<String>>
pub fn list_accounts(&self) -> PhpResult<Vec<String>>
pub fn get_account_balance( &self, account_id: String, as_of_date: Option<String>, ) -> PhpResult<f64>
pub fn initialize_chart_of_accounts(&self) -> PhpResult<Vec<String>>
Trait Implementations§
Source§impl Clone for GeneralLedger
impl Clone for GeneralLedger
Source§fn clone(&self) -> GeneralLedger
fn clone(&self) -> GeneralLedger
Returns a duplicate 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<'a> FromZendObject<'a> for &'a GeneralLedger
impl<'a> FromZendObject<'a> for &'a GeneralLedger
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZendObjectMut<'a> for &'a mut GeneralLedger
impl<'a> FromZendObjectMut<'a> for &'a mut GeneralLedger
Source§fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZval<'a> for &'a GeneralLedger
impl<'a> FromZval<'a> for &'a GeneralLedger
Source§impl<'a> FromZvalMut<'a> for &'a mut GeneralLedger
impl<'a> FromZvalMut<'a> for &'a mut GeneralLedger
Source§impl IntoZendObject for GeneralLedger
impl IntoZendObject for GeneralLedger
Source§fn into_zend_object(self) -> Result<ZBox<ZendObject>>
fn into_zend_object(self) -> Result<ZBox<ZendObject>>
Attempts to convert
self into a Zend object.Source§impl IntoZval for GeneralLedger
impl IntoZval for GeneralLedger
Source§impl RegisteredClass for GeneralLedger
impl RegisteredClass for GeneralLedger
Source§const CLASS_NAME: &'static str = "StateSet\\GeneralLedger"
const CLASS_NAME: &'static str = "StateSet\\GeneralLedger"
PHP class name of the registered class.
Source§const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
Optional class constructor.
Source§fn get_metadata() -> &'static ClassMetadata<Self>
fn get_metadata() -> &'static ClassMetadata<Self>
Returns a reference to the class metadata, which stores the class entry
and handlers. Read more
Auto Trait Implementations§
impl Freeze for GeneralLedger
impl RefUnwindSafe for GeneralLedger
impl Send for GeneralLedger
impl Sync for GeneralLedger
impl Unpin for GeneralLedger
impl UnsafeUnpin for GeneralLedger
impl UnwindSafe for GeneralLedger
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