mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
15 lines
327 B
Rust
15 lines
327 B
Rust
use derive_more::From;
|
|
use rustical_xml::{XmlDeserialize, XmlSerialize};
|
|
|
|
#[derive(XmlDeserialize, XmlSerialize, Debug, Clone, From, PartialEq)]
|
|
pub struct HrefElement {
|
|
#[xml(ns = "crate::namespace::NS_DAV")]
|
|
pub href: String,
|
|
}
|
|
|
|
impl HrefElement {
|
|
pub fn new(href: String) -> Self {
|
|
Self { href }
|
|
}
|
|
}
|