pub struct Separators {
pub segment: char,
pub field: char,
pub repeat: char,
pub component: char,
pub subcomponent: char,
pub escape_char: char,
}
Expand description
A helper struct to store the separator (delimiter) characters used to parse this message.
Note that HL7 allows each message to define it’s own separators, although most messages
use a default set (available from Separators::default()
)
Fields§
§segment: char
constant value, spec fixed to ‘\r’ (ASCII 13, 0x0D)
field: char
§repeat: char
§component: char
§subcomponent: char
§escape_char: char
Implementations§
Source§impl Separators
impl Separators
Sourcepub fn default() -> Separators
pub fn default() -> Separators
Create a Separator with the default (most common) HL7 values
Trait Implementations§
Source§impl Clone for Separators
impl Clone for Separators
Source§fn clone(&self) -> Separators
fn clone(&self) -> Separators
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 Separators
impl Debug for Separators
Source§impl Display for Separators
impl Display for Separators
Source§impl FromStr for Separators
Expects to receive a full message (or at least a MSH segment) in order to parse
out the separator chars.
impl FromStr for Separators
Expects to receive a full message (or at least a MSH segment) in order to parse out the separator chars.
Source§impl PartialEq for Separators
impl PartialEq for Separators
impl Copy for Separators
impl StructuralPartialEq for Separators
Auto Trait Implementations§
impl Freeze for Separators
impl RefUnwindSafe for Separators
impl Send for Separators
impl Sync for Separators
impl Unpin for Separators
impl UnwindSafe for Separators
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