#[derive(Clone, Debug, Default)]
pub struct Attachments {
pub attachment: Vec<CtAttachment>,
}
#[derive(Clone, Debug, Default)]
pub struct CtAttachment {
pub id: String,
pub name: String,
pub format: Option<String>,
pub creation_date: Option<String>,
pub mod_date: Option<String>,
pub size: Option<f64>,
pub visible: Option<bool>,
pub usage: Option<String>,
pub file_loc: crate::schemas::definitions::StLoc,
}
#[derive(Clone, Debug, Default)]
pub struct Attachment(pub CtAttachment);
impl From<CtAttachment> for Attachment {
fn from(value: CtAttachment) -> Self {
Self(value)
}
}
impl From<Attachment> for CtAttachment {
fn from(value: Attachment) -> Self {
value.0
}
}
impl std::ops::Deref for Attachment {
type Target = CtAttachment;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl std::ops::DerefMut for Attachment {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}