pub enum PhoneImageDocument {
Image(CiscoIpPhoneImage),
ImageFile(CiscoIpPhoneImageFile),
GraphicMenu(CiscoIpPhoneGraphicMenu),
GraphicFileMenu(CiscoIpPhoneGraphicFileMenu),
}Expand description
Any accepted image-service document family.
Variants§
Image(CiscoIpPhoneImage)
ImageFile(CiscoIpPhoneImageFile)
GraphicMenu(CiscoIpPhoneGraphicMenu)
GraphicFileMenu(CiscoIpPhoneGraphicFileMenu)
Implementations§
Source§impl PhoneImageDocument
impl PhoneImageDocument
Sourcepub fn validate(&self) -> Result<(), PhoneXmlError>
pub fn validate(&self) -> Result<(), PhoneXmlError>
Applies the invariants for the selected image family.
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Detects the root and parses any supported image family.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes the selected family using PHONE_IMAGE_MAX_BYTES.
Sourcepub fn to_xml_with_limit(
&self,
maximum_bytes: usize,
) -> Result<String, PhoneXmlError>
pub fn to_xml_with_limit( &self, maximum_bytes: usize, ) -> Result<String, PhoneXmlError>
Validates and serializes the selected family within a caller-selected limit.
Trait Implementations§
Source§impl Clone for PhoneImageDocument
impl Clone for PhoneImageDocument
Source§fn clone(&self) -> PhoneImageDocument
fn clone(&self) -> PhoneImageDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhoneImageDocument
impl Debug for PhoneImageDocument
impl Eq for PhoneImageDocument
Source§impl PartialEq for PhoneImageDocument
impl PartialEq for PhoneImageDocument
impl StructuralPartialEq for PhoneImageDocument
Auto Trait Implementations§
impl Freeze for PhoneImageDocument
impl RefUnwindSafe for PhoneImageDocument
impl Send for PhoneImageDocument
impl Sync for PhoneImageDocument
impl Unpin for PhoneImageDocument
impl UnsafeUnpin for PhoneImageDocument
impl UnwindSafe for PhoneImageDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more