parse_sap_atom_feed/atom/workspace.rs
1use super::collection::AtomCollection;
2use serde::{Deserialize, Serialize};
3
4// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5/// Represents an `<atom:workspace>` tag
6#[derive(Debug, Serialize, Deserialize)]
7pub struct AtomWorkspace {
8 pub title: String,
9
10 #[serde(rename = "collection")]
11 pub collections: Vec<AtomCollection>,
12}
13
14impl std::str::FromStr for AtomWorkspace {
15 type Err = quick_xml::DeError;
16
17 fn from_str(s: &str) -> Result<Self, Self::Err> {
18 quick_xml::de::from_str(s)
19 }
20}