pub struct MxEnvelope<H, D> {
pub xmlns: Option<String>,
pub xmlns_xsi: Option<String>,
pub app_hdr: H,
pub document: MxDocument<D>,
}Expand description
Complete MX message envelope containing Business Application Header and Document
Fields§
§xmlns: Option<String>XML namespace declarations
xmlns_xsi: Option<String>§app_hdr: HBusiness Application Header
document: MxDocument<D>Document containing the actual message
Implementations§
Source§impl<H, D> MxEnvelope<H, D>
impl<H, D> MxEnvelope<H, D>
Sourcepub fn new(app_hdr: H, document: D, document_namespace: String) -> Self
pub fn new(app_hdr: H, document: D, document_namespace: String) -> Self
Create a new MX envelope with default namespaces
Sourcepub fn new_pacs008(app_hdr: H, document: D) -> Self
pub fn new_pacs008(app_hdr: H, document: D) -> Self
Create envelope for pacs.008 message
Sourcepub fn new_pacs009(app_hdr: H, document: D) -> Self
pub fn new_pacs009(app_hdr: H, document: D) -> Self
Create envelope for pacs.009 message
Sourcepub fn new_pain001(app_hdr: H, document: D) -> Self
pub fn new_pain001(app_hdr: H, document: D) -> Self
Create envelope for pain.001 message
Sourcepub fn new_camt052(app_hdr: H, document: D) -> Self
pub fn new_camt052(app_hdr: H, document: D) -> Self
Create envelope for camt.052 message
Sourcepub fn new_camt053(app_hdr: H, document: D) -> Self
pub fn new_camt053(app_hdr: H, document: D) -> Self
Create envelope for camt.053 message
Trait Implementations§
Source§impl<H: Clone, D: Clone> Clone for MxEnvelope<H, D>
impl<H: Clone, D: Clone> Clone for MxEnvelope<H, D>
Source§fn clone(&self) -> MxEnvelope<H, D>
fn clone(&self) -> MxEnvelope<H, D>
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<'de, H, D> Deserialize<'de> for MxEnvelope<H, D>where
H: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, H, D> Deserialize<'de> for MxEnvelope<H, D>where
H: Deserialize<'de>,
D: Deserialize<'de>,
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<H, D> Serialize for MxEnvelope<H, D>
impl<H, D> Serialize for MxEnvelope<H, D>
impl<H, D> StructuralPartialEq for MxEnvelope<H, D>
Auto Trait Implementations§
impl<H, D> Freeze for MxEnvelope<H, D>
impl<H, D> RefUnwindSafe for MxEnvelope<H, D>where
H: RefUnwindSafe,
D: RefUnwindSafe,
impl<H, D> Send for MxEnvelope<H, D>
impl<H, D> Sync for MxEnvelope<H, D>
impl<H, D> Unpin for MxEnvelope<H, D>
impl<H, D> UnwindSafe for MxEnvelope<H, D>where
H: UnwindSafe,
D: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more