Struct marc::Record
[−]
[src]
pub struct Record {
pub record_status: RecordStatus,
pub type_of_record: TypeOfRecord,
pub bibliographic_level: BibliographicLevel,
pub type_of_control: TypeOfControl,
pub character_coding_scheme: CharacterCodingScheme,
pub encoding_level: EncodingLevel,
pub descriptive_cataloging_form: DescriptiveCatalogingForm,
pub multipart_resource_record_level: MultipartResourceRecordLevel,
// some fields omitted
}Parsed MARC record representation.
Fields
record_status: RecordStatus
type_of_record: TypeOfRecord
bibliographic_level: BibliographicLevel
type_of_control: TypeOfControl
character_coding_scheme: CharacterCodingScheme
encoding_level: EncodingLevel
descriptive_cataloging_form: DescriptiveCatalogingForm
multipart_resource_record_level: MultipartResourceRecordLevel
Methods
impl Record[src]
fn from_vec(data: Vec<u8>) -> Result<Record>
fn fields<'r>(&'r self) -> Fields<'r>
Returns iterator over fields of a record.
fn get_field<'r, T: Into<Tag> + Clone>(&'r self, tag: T) -> Vec<Field<'r>>
Returns fileds with tag tag or empty vec if no such fields.
fn as_slice(&self) -> &[u8]
Returns a slice into data of a field.
Trait Implementations
impl Clone for Record[src]
fn clone(&self) -> Record
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Record[src]
fn eq(&self, __arg_0: &Record) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Record) -> bool
This method tests for !=.