Files
pmomusic/pmoupnp/src/actions/action_set_methods.rs
2025-10-05 22:03:13 +02:00

20 lines
439 B
Rust

use xmltree::{Element, XMLNode};
use crate::actions::ActionSet;
use crate::UpnpObject;
impl UpnpObject for ActionSet {
fn to_xml_element(&self) -> Element {
let mut elem = Element::new("actionList");
for action in self.all() {
let action_elem = action.to_xml_element(); // retourne un <action> complet
elem.children.push(XMLNode::Element(action_elem));
}
elem
}
}