#[repr(C)]pub enum XfsMethodResponse {
Params(XfsParams),
Fault(XfsFault),
}
Expand description
Variants§
Implementations§
Source§impl XfsMethodResponse
impl XfsMethodResponse
Sourcepub fn new_params<P: Into<Vec<XfsParam>>>(params: P) -> Self
pub fn new_params<P: Into<Vec<XfsParam>>>(params: P) -> Self
Creates a new XfsMethodResponse::Params variant with the provided XfsParams.
Sourcepub fn new_fault<S: Into<String>>(code: i32, string: S) -> Self
pub fn new_fault<S: Into<String>>(code: i32, string: S) -> Self
Creates a new XfsMethodResponse::Fault variant with the provided fault code.
Sourcepub fn call_id(&self) -> Result<i32>
pub fn call_id(&self) -> Result<i32>
Gets the async callback ID from the XfsMethodResponse.
Returns: Ok(i32)
on success, Err(Error)
on failure
Source§impl XfsMethodResponse
impl XfsMethodResponse
Trait Implementations§
Source§impl Clone for XfsMethodResponse
impl Clone for XfsMethodResponse
Source§fn clone(&self) -> XfsMethodResponse
fn clone(&self) -> XfsMethodResponse
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 Debug for XfsMethodResponse
impl Debug for XfsMethodResponse
Source§impl<'de> Deserialize<'de> for XfsMethodResponse
impl<'de> Deserialize<'de> for XfsMethodResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for XfsMethodResponse
impl Display for XfsMethodResponse
Source§impl From<&XfsMethodResponse> for XfsMethodResponseStruct
impl From<&XfsMethodResponse> for XfsMethodResponseStruct
Source§fn from(val: &XfsMethodResponse) -> Self
fn from(val: &XfsMethodResponse) -> Self
Converts to this type from the input type.
Source§impl From<&XfsMethodResponseStruct> for XfsMethodResponse
impl From<&XfsMethodResponseStruct> for XfsMethodResponse
Source§fn from(val: &XfsMethodResponseStruct) -> Self
fn from(val: &XfsMethodResponseStruct) -> Self
Converts to this type from the input type.
Source§impl From<XfsMethodResponse> for XfsMethodResponseStruct
impl From<XfsMethodResponse> for XfsMethodResponseStruct
Source§fn from(val: XfsMethodResponse) -> Self
fn from(val: XfsMethodResponse) -> Self
Converts to this type from the input type.
Source§impl From<XfsMethodResponseStruct> for XfsMethodResponse
impl From<XfsMethodResponseStruct> for XfsMethodResponse
Source§fn from(val: XfsMethodResponseStruct) -> Self
fn from(val: XfsMethodResponseStruct) -> Self
Converts to this type from the input type.
Source§impl PartialEq for XfsMethodResponse
impl PartialEq for XfsMethodResponse
Source§impl Serialize for XfsMethodResponse
impl Serialize for XfsMethodResponse
Source§impl TryFrom<&XfsMethodResponse> for BillAcceptanceHistory
impl TryFrom<&XfsMethodResponse> for BillAcceptanceHistory
Source§impl TryFrom<&XfsMethodResponse> for BillDispenseHistory
impl TryFrom<&XfsMethodResponse> for BillDispenseHistory
Source§impl TryFrom<&XfsMethodResponse> for BillsetIdList
impl TryFrom<&XfsMethodResponse> for BillsetIdList
Source§impl TryFrom<&XfsMethodResponse> for Capabilities
impl TryFrom<&XfsMethodResponse> for Capabilities
Source§impl TryFrom<&XfsMethodResponse> for CashUnit
impl TryFrom<&XfsMethodResponse> for CashUnit
Source§impl TryFrom<&XfsMethodResponse> for CdrStatus
impl TryFrom<&XfsMethodResponse> for CdrStatus
Source§impl TryFrom<&XfsMethodResponse> for DenominationList
impl TryFrom<&XfsMethodResponse> for DenominationList
Source§impl TryFrom<&XfsMethodResponse> for SystemFailureHistory
impl TryFrom<&XfsMethodResponse> for SystemFailureHistory
Source§impl TryFrom<&XfsMethodResponse> for SystemRestartHistory
impl TryFrom<&XfsMethodResponse> for SystemRestartHistory
Source§impl TryFrom<&XfsMethodResponse> for SystemUseHistory
impl TryFrom<&XfsMethodResponse> for SystemUseHistory
Source§impl TryFrom<XfsMethodResponse> for BillsetIdList
impl TryFrom<XfsMethodResponse> for BillsetIdList
Source§impl TryFrom<XfsMethodResponse> for Capabilities
impl TryFrom<XfsMethodResponse> for Capabilities
Source§impl TryFrom<XfsMethodResponse> for CashUnit
impl TryFrom<XfsMethodResponse> for CashUnit
Source§impl TryFrom<XfsMethodResponse> for CdrStatus
impl TryFrom<XfsMethodResponse> for CdrStatus
Source§impl TryFrom<XfsMethodResponse> for DenominationList
impl TryFrom<XfsMethodResponse> for DenominationList
Source§impl TryFrom<XfsMethodResponse> for SystemUseHistory
impl TryFrom<XfsMethodResponse> for SystemUseHistory
impl StructuralPartialEq for XfsMethodResponse
Auto Trait Implementations§
impl Freeze for XfsMethodResponse
impl RefUnwindSafe for XfsMethodResponse
impl Send for XfsMethodResponse
impl Sync for XfsMethodResponse
impl Unpin for XfsMethodResponse
impl UnwindSafe for XfsMethodResponse
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