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: u16Length in bytes of the record
status: StatusThe status of the information, e.g. whether the sender signals it is a new entry or a correction
record_type: RecordTypeThe type of content described by the record, will alter which fields should be provided.
bibliographical_level: BibliographicalLevelMostly used to tell whether this is for a single item or a collection
control_type: ControlType§coding_scheme: CodingSchemeTells which encoding was used for the text of the variable data fields.
data_base_address: u16Byte index of the variable field data, after the leader and the dictionary
encoding_level: EncodingLevelRepresents something like the quality of the data about the entry
descriptive_cataloging_form: CatalogingForm§multipart_resource_record_level: MultipartResourceRecordLevelTrait Implementations§
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> 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