mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
WIP: Start implementing precondition errors
This commit is contained in:
14
crates/dav/src/xml/href.rs
Normal file
14
crates/dav/src/xml/href.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user