Struct bookdata::marc::record::MARCRecord
source · 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 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