marc-rs 1.0.2

Rust library for MARC21, UNIMARC, and MARC XML format support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Debug, Error)]
pub enum MarcError {
    #[error("invalid record: {0}")]
    InvalidRecord(&'static str),

    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("encoding error")]
    Encoding,

    #[error("XML error: {0}")]
    Xml(String),
}