pub struct ISO8583Message {
pub mti: MessageType,
/* private fields */
}Available on crate feature
std only.Expand description
ISO 8583 Message
Fields§
§mti: MessageTypeMessage Type Indicator
Implementations§
Source§impl ISO8583Message
impl ISO8583Message
Sourcepub fn new(mti: MessageType) -> Self
pub fn new(mti: MessageType) -> Self
Create a new message with given MTI
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Sourcepub fn get_field(&self, field: Field) -> Option<&FieldValue>
pub fn get_field(&self, field: Field) -> Option<&FieldValue>
Get field value
Sourcepub fn remove_field(&mut self, field: Field) -> Result<()>
pub fn remove_field(&mut self, field: Field) -> Result<()>
Remove field
Sourcepub fn get_field_numbers(&self) -> Vec<u8> ⓘ
pub fn get_field_numbers(&self) -> Vec<u8> ⓘ
Get all present field numbers
Sourcepub fn builder() -> MessageBuilder
pub fn builder() -> MessageBuilder
Create a builder for constructing messages
Trait Implementations§
Source§impl Clone for ISO8583Message
impl Clone for ISO8583Message
Source§fn clone(&self) -> ISO8583Message
fn clone(&self) -> ISO8583Message
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 ISO8583Message
impl Debug for ISO8583Message
Source§impl PartialEq for ISO8583Message
impl PartialEq for ISO8583Message
impl StructuralPartialEq for ISO8583Message
Auto Trait Implementations§
impl Freeze for ISO8583Message
impl RefUnwindSafe for ISO8583Message
impl Send for ISO8583Message
impl Sync for ISO8583Message
impl Unpin for ISO8583Message
impl UnsafeUnpin for ISO8583Message
impl UnwindSafe for ISO8583Message
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