pub struct MARCRecord {
pub leader: String,
pub control: Vec<ControlField>,
pub fields: Vec<Field>,
}
Expand description
A MARC record.
Fields§
§leader: String
§control: Vec<ControlField>
§fields: Vec<Field>
Implementations§
Source§impl MARCRecord
impl MARCRecord
Sourcepub fn marc_control<'a>(&'a self) -> Option<&'a str>
pub fn marc_control<'a>(&'a self) -> Option<&'a str>
Get the MARC control number.
Sourcepub fn rec_status(&self) -> Option<u8>
pub fn rec_status(&self) -> Option<u8>
Get the record status.
Sourcepub fn rec_bib_level(&self) -> Option<u8>
pub fn rec_bib_level(&self) -> Option<u8>
Get the record bibliographic level.
Sourcepub fn gov_pub_code(&self) -> Option<u8>
pub fn gov_pub_code(&self) -> Option<u8>
Get the government publication code
Trait Implementations§
Source§impl Clone for MARCRecord
impl Clone for MARCRecord
Source§fn clone(&self) -> MARCRecord
fn clone(&self) -> MARCRecord
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MARCRecord
impl Debug for MARCRecord
Source§impl ObjectWriter<MARCRecord> for BookOutput
impl ObjectWriter<MARCRecord> for BookOutput
Source§fn write_object(&mut self, record: MARCRecord) -> Result<()>
fn write_object(&mut self, record: MARCRecord) -> Result<()>
Write one object.
Source§fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
Source§impl ObjectWriter<MARCRecord> for FieldOutput
impl ObjectWriter<MARCRecord> for FieldOutput
Source§fn write_object(&mut self, rec: MARCRecord) -> Result<()>
fn write_object(&mut self, rec: MARCRecord) -> Result<()>
Write one object.
Source§fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
Auto Trait Implementations§
impl Freeze for MARCRecord
impl RefUnwindSafe for MARCRecord
impl Send for MARCRecord
impl Sync for MARCRecord
impl Unpin for MARCRecord
impl UnwindSafe for MARCRecord
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