pub struct SegmentPosition {
pub segment_number: u32,
pub byte_offset: usize,
pub message_number: u32,
}Expand description
Serializable segment position for validation reports.
Mirrors edifact_primitives::SegmentPosition but with serde support,
since the edifact-primitives crate is intentionally zero-dependency.
Fields§
§segment_number: u321-based segment number within the interchange.
byte_offset: usizeByte offset from the start of the input.
message_number: u321-based message number within the interchange.
Trait Implementations§
Source§impl Clone for SegmentPosition
impl Clone for SegmentPosition
Source§fn clone(&self) -> SegmentPosition
fn clone(&self) -> SegmentPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SegmentPosition
Source§impl Debug for SegmentPosition
impl Debug for SegmentPosition
Source§impl<'de> Deserialize<'de> for SegmentPosition
impl<'de> Deserialize<'de> for SegmentPosition
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
impl Eq for SegmentPosition
Source§impl From<SegmentPosition> for SegmentPosition
impl From<SegmentPosition> for SegmentPosition
Source§fn from(pos: SegmentPosition) -> Self
fn from(pos: SegmentPosition) -> Self
Converts to this type from the input type.
Source§impl Hash for SegmentPosition
impl Hash for SegmentPosition
Source§impl PartialEq for SegmentPosition
impl PartialEq for SegmentPosition
Source§impl Serialize for SegmentPosition
impl Serialize for SegmentPosition
impl StructuralPartialEq for SegmentPosition
Auto Trait Implementations§
impl Freeze for SegmentPosition
impl RefUnwindSafe for SegmentPosition
impl Send for SegmentPosition
impl Sync for SegmentPosition
impl Unpin for SegmentPosition
impl UnsafeUnpin for SegmentPosition
impl UnwindSafe for SegmentPosition
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