yuki_client/client/mod.rs
1pub mod accounting;
2pub mod accounting_info;
3pub mod archive;
4pub mod contact;
5pub mod sales;
6pub mod soap_client;
7pub mod vat;
8
9pub use soap_client::{SoapClient, SoapEnvelope};
10
11/// Strip any XML namespace prefix, returning only the local name.
12pub(crate) fn local_name(name: &[u8]) -> &str {
13 let s = std::str::from_utf8(name).unwrap_or("");
14 s.rfind(':').map(|i| &s[i + 1..]).unwrap_or(s)
15}