Leader

Struct Leader 

Source
pub struct Leader {
    pub record_length: u16,
    pub status: Status,
    pub record_type: RecordType,
    pub bibliographical_level: BibliographicalLevel,
    pub control_type: ControlType,
    pub coding_scheme: CodingScheme,
    pub data_base_address: u16,
    pub encoding_level: EncodingLevel,
    pub descriptive_cataloging_form: CatalogingForm,
    pub multipart_resource_record_level: MultipartResourceRecordLevel,
}
Expand description

The leader is MARC’s equivalent of a header. It contains internal bookkeeping info about the record as well as some information of interest to the applications reading it.

Fields§

§record_length: u16

Length in bytes of the record

§status: Status

The status of the information, e.g. whether the sender signals it is a new entry or a correction

§record_type: RecordType

The type of content described by the record, will alter which fields should be provided.

§bibliographical_level: BibliographicalLevel

Mostly used to tell whether this is for a single item or a collection

§control_type: ControlType§coding_scheme: CodingScheme

Tells which encoding was used for the text of the variable data fields.

§data_base_address: u16

Byte index of the variable field data, after the leader and the dictionary

§encoding_level: EncodingLevel

Represents something like the quality of the data about the entry

§descriptive_cataloging_form: CatalogingForm§multipart_resource_record_level: MultipartResourceRecordLevel

Trait Implementations§

Source§

impl Debug for Leader

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Leader

§

impl RefUnwindSafe for Leader

§

impl Send for Leader

§

impl Sync for Leader

§

impl Unpin for Leader

§

impl UnwindSafe for Leader

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>,

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.