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