Skip to main content

Invoice

Struct Invoice 

Source
pub struct Invoice { /* private fields */ }

Implementations§

Source§

impl Invoice

Source

pub fn get_id(&self) -> String

Source

pub fn get_invoice_number(&self) -> String

Source

pub fn get_customer_id(&self) -> String

Source

pub fn get_order_id(&self) -> Option<String>

Source

pub fn get_status(&self) -> String

Source

pub fn get_subtotal(&self) -> f64

Source

pub fn get_tax(&self) -> f64

Source

pub fn get_total(&self) -> f64

Source

pub fn get_currency(&self) -> String

Source

pub fn get_due_date(&self) -> Option<String>

Source

pub fn get_paid_at(&self) -> Option<String>

Source

pub fn get_created_at(&self) -> String

Source

pub fn get_updated_at(&self) -> String

Source

pub fn __to_string(&self) -> String

Trait Implementations§

Source§

impl Clone for Invoice

Source§

fn clone(&self) -> Invoice

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<Invoice> for Invoice

Source§

fn from(i: Invoice) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromZendObject<'a> for &'a Invoice

Source§

fn from_zend_object(obj: &'a ZendObject) -> Result<Self>

Extracts Self from the source ZendObject.
Source§

impl<'a> FromZendObjectMut<'a> for &'a mut Invoice

Source§

fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>

Extracts Self from the source ZendObject.
Source§

impl<'a> FromZval<'a> for &'a Invoice

Source§

const TYPE: DataType

The corresponding type of the implemented value in PHP.
Source§

fn from_zval(zval: &'a Zval) -> Option<Self>

Attempts to retrieve an instance of Self from a reference to a Zval. Read more
Source§

impl<'a> FromZvalMut<'a> for &'a mut Invoice

Source§

const TYPE: DataType

The corresponding type of the implemented value in PHP.
Source§

fn from_zval_mut(zval: &'a mut Zval) -> Option<Self>

Attempts to retrieve an instance of Self from a mutable reference to a Zval. Read more
Source§

impl IntoZendObject for Invoice

Source§

fn into_zend_object(self) -> Result<ZBox<ZendObject>>

Attempts to convert self into a Zend object.
Source§

impl IntoZval for Invoice

Source§

const TYPE: DataType

The corresponding type of the implemented value in PHP.
Source§

fn set_zval(self, zv: &mut Zval, persistent: bool) -> Result<()>

Sets the content of a pre-existing zval. Returns a result containing nothing if setting the content was successful. Read more
Source§

fn into_zval(self, persistent: bool) -> Result<_zval_struct, Error>

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. Read more
Source§

impl RegisteredClass for Invoice

Source§

const CLASS_NAME: &'static str = "StateSet\\Invoice"

PHP class name of the registered class.
Source§

const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None

Optional class constructor.
Source§

fn get_metadata() -> &'static ClassMetadata<Self>

Returns a reference to the class metadata, which stores the class entry and handlers. Read more
Source§

fn get_properties<'a>() -> HashMap<&'static str, Property<'a, Self>>

Returns a hash table containing the properties of the class. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoZvalDyn for T
where T: IntoZval + Clone,

Source§

fn as_zval(&self, persistent: bool) -> Result<_zval_struct, Error>

Converts a Rust primitive type into a Zval. Returns a result containing the Zval if successful. self is cloned before being converted into a zval. Read more
Source§

fn get_type(&self) -> DataType

Returns the PHP type of the type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more