pub struct Returns { /* private fields */ }Implementations§
Source§impl Returns
impl Returns
pub fn create(&self, order_id: String, reason: String) -> PhpResult<Return>
pub fn get(&self, id: String) -> PhpResult<Option<Return>>
pub fn list(&self) -> PhpResult<Vec<Return>>
pub fn approve( &self, id: String, refund_amount: Option<f64>, ) -> PhpResult<Return>
pub fn reject(&self, id: String, reason: Option<String>) -> PhpResult<Return>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Returns
impl<'a> FromZendObject<'a> for &'a Returns
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 Returns
impl<'a> FromZendObjectMut<'a> for &'a mut Returns
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> FromZvalMut<'a> for &'a mut Returns
impl<'a> FromZvalMut<'a> for &'a mut Returns
Source§impl IntoZendObject for Returns
impl IntoZendObject for Returns
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 Returns
impl IntoZval for Returns
Source§impl RegisteredClass for Returns
impl RegisteredClass for Returns
Source§const CLASS_NAME: &'static str = "StateSet\\Returns"
const CLASS_NAME: &'static str = "StateSet\\Returns"
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 Returns
impl RefUnwindSafe for Returns
impl Send for Returns
impl Sync for Returns
impl Unpin for Returns
impl UnsafeUnpin for Returns
impl UnwindSafe for Returns
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