pub struct CiscoIpPhoneImageFile {Show 13 fields
pub keypad_target: Option<PhoneKeypadTarget>,
pub application_id: Option<String>,
pub on_focus_lost: Option<String>,
pub on_focus_gained: Option<String>,
pub on_minimized: Option<String>,
pub on_closed: Option<String>,
pub title: Option<String>,
pub prompt: Option<String>,
pub soft_keys: Vec<CiscoIpPhoneSoftKeyItem>,
pub key_items: Vec<CiscoIpPhoneKeyItem>,
pub location_x: Option<i16>,
pub location_y: Option<i16>,
pub url: PhoneImageUrl,
}Expand description
A complete URL-backed image document.
Fields§
§keypad_target: Option<PhoneKeypadTarget>§application_id: Option<String>§on_focus_lost: Option<String>§on_focus_gained: Option<String>§on_minimized: Option<String>§on_closed: Option<String>§title: Option<String>§prompt: Option<String>§soft_keys: Vec<CiscoIpPhoneSoftKeyItem>§key_items: Vec<CiscoIpPhoneKeyItem>§location_x: Option<i16>Horizontal origin in -1..=297; -1 requests automatic placement.
location_y: Option<i16>Vertical origin in -1..=167; -1 requests automatic placement.
url: PhoneImageUrlImplementations§
Source§impl CiscoIpPhoneImageFile
impl CiscoIpPhoneImageFile
Sourcepub fn validate(&self) -> Result<(), PhoneXmlError>
pub fn validate(&self) -> Result<(), PhoneXmlError>
Validates display metadata and the optional image origin.
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Detects, parses, and validates an image-file root within PHONE_IMAGE_MAX_BYTES.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes the image-file document within its default bound.
Trait Implementations§
Source§impl Clone for CiscoIpPhoneImageFile
impl Clone for CiscoIpPhoneImageFile
Source§fn clone(&self) -> CiscoIpPhoneImageFile
fn clone(&self) -> CiscoIpPhoneImageFile
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 CiscoIpPhoneImageFile
impl Debug for CiscoIpPhoneImageFile
Source§impl<'de> Deserialize<'de> for CiscoIpPhoneImageFile
impl<'de> Deserialize<'de> for CiscoIpPhoneImageFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CiscoIpPhoneImageFile
Source§impl PartialEq for CiscoIpPhoneImageFile
impl PartialEq for CiscoIpPhoneImageFile
Source§impl Serialize for CiscoIpPhoneImageFile
impl Serialize for CiscoIpPhoneImageFile
impl StructuralPartialEq for CiscoIpPhoneImageFile
Auto Trait Implementations§
impl Freeze for CiscoIpPhoneImageFile
impl RefUnwindSafe for CiscoIpPhoneImageFile
impl Send for CiscoIpPhoneImageFile
impl Sync for CiscoIpPhoneImageFile
impl Unpin for CiscoIpPhoneImageFile
impl UnsafeUnpin for CiscoIpPhoneImageFile
impl UnwindSafe for CiscoIpPhoneImageFile
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