Struct NitfHeader

Source
pub struct NitfHeader {
Show 33 fields pub fhdr: NitfField<FHDR>, pub fver: NitfField<FVER>, pub clevel: NitfField<u8>, pub stype: NitfField<String>, pub ostaid: NitfField<String>, pub fdt: NitfField<String>, pub ftitle: NitfField<String>, pub security: Security, pub fscop: NitfField<u32>, pub fscpys: NitfField<u32>, pub encryp: NitfField<String>, pub fbkgc: Vec<NitfField<String>>, pub oname: NitfField<String>, pub ophone: NitfField<String>, pub fl: NitfField<u64>, pub hl: NitfField<u32>, pub numi: NitfField<u16>, pub imheaders: Vec<SubHeader>, pub nums: NitfField<u16>, pub graphheaders: Vec<SubHeader>, pub numx: NitfField<u16>, pub numt: NitfField<u16>, pub textheaders: Vec<SubHeader>, pub numdes: NitfField<u16>, pub dextheaders: Vec<SubHeader>, pub numres: NitfField<u16>, pub resheaders: Vec<SubHeader>, pub udhdl: NitfField<u32>, pub udhofl: NitfField<u16>, pub udhd: ExtendedSubheader, pub xhdl: NitfField<u32>, pub xhdlofl: NitfField<u16>, pub xhd: ExtendedSubheader,
}
Expand description

Metadata for Nitf File Header

Fields§

§fhdr: NitfField<FHDR>

File Profile Name

§fver: NitfField<FVER>

File Version

§clevel: NitfField<u8>

Complexity Level

§stype: NitfField<String>

Standard Type

§ostaid: NitfField<String>

Originating Station ID

§fdt: NitfField<String>

File Date and Time

§ftitle: NitfField<String>

File Title

§security: Security

Security information

§fscop: NitfField<u32>

File Copy Number

§fscpys: NitfField<u32>

File Number of Copies

§encryp: NitfField<String>

Encryption

§fbkgc: Vec<NitfField<String>>

File Background Color

§oname: NitfField<String>

Originator’s Name

§ophone: NitfField<String>

Originator’s Phone Number

§fl: NitfField<u64>

File Length

§hl: NitfField<u32>

NITF File Header Length

§numi: NitfField<u16>

Number of Image Segments

§imheaders: Vec<SubHeader>

Image Segments

§nums: NitfField<u16>

Number of Graphics Segments

§graphheaders: Vec<SubHeader>

Graphic Segments

§numx: NitfField<u16>

Reserved for future use

§numt: NitfField<u16>

Number of Text Segments

§textheaders: Vec<SubHeader>

Text Segments

§numdes: NitfField<u16>

Number of Data Extension Segments

§dextheaders: Vec<SubHeader>

Data Extenstion Segments

§numres: NitfField<u16>

Number of Reserved Extension Segments

§resheaders: Vec<SubHeader>

Reserved Extension Segments

§udhdl: NitfField<u32>

User Defined Header Data Length

§udhofl: NitfField<u16>

User Defined Header Overflow

§udhd: ExtendedSubheader

User Defined Header Data

§xhdl: NitfField<u32>

Extended Header Data Length

§xhdlofl: NitfField<u16>

Extended Header Data Overflow

§xhd: ExtendedSubheader

Extended Header Data

Trait Implementations§

Source§

impl Clone for NitfHeader

Source§

fn clone(&self) -> NitfHeader

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NitfHeader

Source§

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

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

impl Default for NitfHeader

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for NitfHeader

Source§

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

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

impl NitfSegmentHeader for NitfHeader

Source§

fn read(&mut self, reader: &mut (impl Read + Seek)) -> NitfResult<()>

Read the segment info from stream Read more
Source§

fn write(&self, writer: &mut (impl Write + Seek)) -> NitfResult<usize>

Write the segment info to stream Read more
Source§

fn length(&self) -> usize

Get the length of the segment
Source§

fn from_reader(reader: &mut (impl Read + Seek)) -> NitfResult<Self>

Source§

impl Ord for NitfHeader

Source§

fn cmp(&self, other: &NitfHeader) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for NitfHeader

Source§

fn eq(&self, other: &NitfHeader) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for NitfHeader

Source§

fn partial_cmp(&self, other: &NitfHeader) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for NitfHeader

Source§

impl StructuralPartialEq for NitfHeader

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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 = 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>,

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.