yuki-cli 0.1.2

CLI client for the Yuki bookkeeping SOAP API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod accounting;
pub mod accounting_info;
pub mod archive;
pub mod contact;
pub mod sales;
pub mod soap_client;
pub mod vat;

pub use soap_client::{SoapClient, SoapEnvelope};

/// Strip any XML namespace prefix, returning only the local name.
pub(crate) fn local_name(name: &[u8]) -> &str {
    let s = std::str::from_utf8(name).unwrap_or("");
    s.rfind(':').map(|i| &s[i + 1..]).unwrap_or(s)
}