use crate::errors::{ErrorKind, Result}; use crate::fsshttpb::data::exguid::ExGuid; use crate::one::property_set::iframe_node; use crate::onestore::object_space::ObjectSpace; /// An embedded iframe. #[derive(Clone, PartialEq, PartialOrd, Debug)] pub struct IFrame { pub(crate) embed_type: Option, pub(crate) source_url: String, } impl IFrame { pub fn embed_type(&self) -> Option { self.embed_type } pub fn source_url(&self) -> &str { &self.source_url } } pub(crate) fn parse_iframe(iframe_id: ExGuid, space: &ObjectSpace) -> Result