Skip to main content

Email

Struct Email 

Source
pub struct Email(/* private fields */);
Expand description

The Email (35=C) message.

Implementations§

Source§

impl Email

Source

pub const MSG_TYPE: &[u8] = b"C"

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn email_thread_id(&self) -> Result<Option<&str>, InvalidValue>

The EmailThreadID (164) field.

Source

pub fn email_type(&self) -> Result<Option<EmailType<'_>>, InvalidValue>

The EmailType (94) field.

Source

pub fn orig_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue>

The OrigTime (42) field.

Source

pub fn subject(&self) -> Result<Option<&str>, InvalidValue>

The Subject (147) field.

Source

pub fn encoded_subject_len(&self) -> Result<Option<i64>, InvalidValue>

The EncodedSubjectLen (356) field.

Source

pub fn encoded_subject(&self) -> Option<&[u8]>

The EncodedSubject (357) field.

Source

pub fn routing_ids(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoRoutingIDs (215) group.

Source

pub fn related_sym(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoRelatedSym (146) group.

Source

pub fn underlyings(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoUnderlyings (711) group.

Source

pub fn legs(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoLegs (555) group.

Source

pub fn order_id(&self) -> Result<Option<&str>, InvalidValue>

The OrderID (37) field.

Source

pub fn cl_ord_id(&self) -> Result<Option<&str>, InvalidValue>

The ClOrdID (11) field.

Source

pub fn lines_of_text(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoLinesOfText (33) group.

Source

pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>

The RawDataLength (95) field.

Source

pub fn raw_data(&self) -> Option<&[u8]>

The RawData (96) field.

Trait Implementations§

Source§

impl Debug for Email

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Email

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Email

§

impl Forget for Email

§

impl Move for Email

§

impl RefUnwindSafe for Email

§

impl Send for Email

§

impl Sync for Email

§

impl Unpin for Email

§

impl UnsafeUnpin for Email

§

impl UnwindSafe for Email

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.