Struct edi::InterchangeControl

source ·
pub struct InterchangeControl<'a> {
Show 16 fields pub authorization_qualifier: Cow<'a, str>, pub authorization_information: Cow<'a, str>, pub security_qualifier: Cow<'a, str>, pub security_information: Cow<'a, str>, pub sender_qualifier: Cow<'a, str>, pub sender_id: Cow<'a, str>, pub receiver_qualifier: Cow<'a, str>, pub receiver_id: Cow<'a, str>, pub date: Cow<'a, str>, pub time: Cow<'a, str>, pub standards_id: Cow<'a, str>, pub version: Cow<'a, str>, pub interchange_control_number: Cow<'a, str>, pub acknowledgement_requested: Cow<'a, str>, pub test_indicator: Cow<'a, str>, pub functional_groups: VecDeque<FunctionalGroup<'a>>,
}
Expand description

Represents the ISA/IEA header information commonly known as the “envelope” in X12 EDI.

Fields§

§authorization_qualifier: Cow<'a, str>

Code to identify the type of information in the Authorization Information.

Qualifiers are two-digit prefixes which categorize the following element.

§authorization_information: Cow<'a, str>

Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier.

§security_qualifier: Cow<'a, str>

Code to identify the type of information in the Security Information

Qualifiers are two-digit prefixes which categorize the following element.

§security_information: Cow<'a, str>

This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier

§sender_qualifier: Cow<'a, str>

Qualifier to designate the system/method of code structure used to designate the sender ID.

Qualifiers are two-digit prefixes which categorize the following element.

§sender_id: Cow<'a, str>

Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element

§receiver_qualifier: Cow<'a, str>

Qualifier to designate the system/method of code structure used to designate the receiver ID.

Qualifiers are two-digit prefixes which categorize the following element.

§receiver_id: Cow<'a, str>

Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them

§date: Cow<'a, str>

Date of the interchange

§time: Cow<'a, str>

Time of the interchange

§standards_id: Cow<'a, str>

Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer

§version: Cow<'a, str>

Code specifying the version number of the interchange control segments

§interchange_control_number: Cow<'a, str>

A control number assigned by the interchange sender

§acknowledgement_requested: Cow<'a, str>

Either a 0 or a 1 denoting that acknowledgment is not requested (0) or it is requested (1).

§test_indicator: Cow<'a, str>

Code to indicate whether data enclosed by this interchange envelope is test (“T”), production (“P”), or information (“I”).

§functional_groups: VecDeque<FunctionalGroup<'a>>

The FunctionalGroups contained in this interchange.

Implementations§

source§

impl<'a> InterchangeControl<'a>

source

pub fn to_x12_string( &self, segment_delimiter: char, element_delimiter: char, sub_element_separator: char, ) -> String

Converts this InterchangeControl into an ANSI x12 string for use in an EDI document.

Trait Implementations§

source§

impl<'a> Debug for InterchangeControl<'a>

source§

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

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

impl<'de: 'a, 'a> Deserialize<'de> for InterchangeControl<'a>

source§

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<'a> PartialEq for InterchangeControl<'a>

source§

fn eq(&self, other: &InterchangeControl<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> Serialize for InterchangeControl<'a>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a> StructuralPartialEq for InterchangeControl<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for InterchangeControl<'a>

§

impl<'a> RefUnwindSafe for InterchangeControl<'a>

§

impl<'a> Send for InterchangeControl<'a>

§

impl<'a> Sync for InterchangeControl<'a>

§

impl<'a> Unpin for InterchangeControl<'a>

§

impl<'a> UnwindSafe for InterchangeControl<'a>

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, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,