pub struct BankingResponse {
pub success: bool,
pub data: Option<BankingData>,
pub error: Option<String>,
pub transaction_id: Option<String>,
}Expand description
Response from banking operations
Fields§
§success: boolWhether the operation was successful
data: Option<BankingData>Result data (account info, balance, etc.)
error: Option<String>Error message if operation failed
transaction_id: Option<String>Transaction ID for operations that create transactions
Implementations§
Source§impl BankingResponse
impl BankingResponse
pub fn success(data: Option<BankingData>) -> Self
pub fn success_with_transaction( data: Option<BankingData>, transaction_id: String, ) -> Self
pub fn error(message: String) -> Self
Trait Implementations§
Source§impl Clone for BankingResponse
impl Clone for BankingResponse
Source§fn clone(&self) -> BankingResponse
fn clone(&self) -> BankingResponse
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 BankingResponse
impl Debug for BankingResponse
Source§impl<'de> Deserialize<'de> for BankingResponse
impl<'de> Deserialize<'de> for BankingResponse
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 PartialEq for BankingResponse
impl PartialEq for BankingResponse
Source§impl Serialize for BankingResponse
impl Serialize for BankingResponse
impl StructuralPartialEq for BankingResponse
Auto Trait Implementations§
impl Freeze for BankingResponse
impl RefUnwindSafe for BankingResponse
impl Send for BankingResponse
impl Sync for BankingResponse
impl Unpin for BankingResponse
impl UnsafeUnpin for BankingResponse
impl UnwindSafe for BankingResponse
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