pub struct CiscoIpPhoneGraphicFileMenu {Show 14 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,
pub items: Vec<CiscoIpPhoneTouchAreaMenuItem>,
}Expand description
A complete URL-backed graphic menu 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: PhoneImageUrl§items: Vec<CiscoIpPhoneTouchAreaMenuItem>Implementations§
Source§impl CiscoIpPhoneGraphicFileMenu
impl CiscoIpPhoneGraphicFileMenu
Sourcepub fn validate(&self) -> Result<(), PhoneXmlError>
pub fn validate(&self) -> Result<(), PhoneXmlError>
Validates display metadata, image origin, and touch-area item bounds.
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Detects, parses, and validates a graphic-file menu within its default bound.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes the graphic-file menu within its default bound.
Trait Implementations§
Source§impl Clone for CiscoIpPhoneGraphicFileMenu
impl Clone for CiscoIpPhoneGraphicFileMenu
Source§fn clone(&self) -> CiscoIpPhoneGraphicFileMenu
fn clone(&self) -> CiscoIpPhoneGraphicFileMenu
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 CiscoIpPhoneGraphicFileMenu
impl Debug for CiscoIpPhoneGraphicFileMenu
Source§impl<'de> Deserialize<'de> for CiscoIpPhoneGraphicFileMenu
impl<'de> Deserialize<'de> for CiscoIpPhoneGraphicFileMenu
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 CiscoIpPhoneGraphicFileMenu
impl StructuralPartialEq for CiscoIpPhoneGraphicFileMenu
Auto Trait Implementations§
impl Freeze for CiscoIpPhoneGraphicFileMenu
impl RefUnwindSafe for CiscoIpPhoneGraphicFileMenu
impl Send for CiscoIpPhoneGraphicFileMenu
impl Sync for CiscoIpPhoneGraphicFileMenu
impl Unpin for CiscoIpPhoneGraphicFileMenu
impl UnsafeUnpin for CiscoIpPhoneGraphicFileMenu
impl UnwindSafe for CiscoIpPhoneGraphicFileMenu
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