pub struct CiscoIpPhoneIconMenu {
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 items: Vec<CiscoIpPhoneIconMenuItem>,
pub icons: Vec<CiscoIpPhoneIconItem>,
}Expand description
A complete menu whose icons are inline hexadecimal bitmaps.
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>§items: Vec<CiscoIpPhoneIconMenuItem>§icons: Vec<CiscoIpPhoneIconItem>Implementations§
Source§impl CiscoIpPhoneIconMenu
impl CiscoIpPhoneIconMenu
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Parses and validates this document using its schema byte limit.
Sourcepub fn from_xml_with_limit(
document: &[u8],
maximum_bytes: usize,
) -> Result<Self, PhoneXmlError>
pub fn from_xml_with_limit( document: &[u8], maximum_bytes: usize, ) -> Result<Self, PhoneXmlError>
Parses and validates this document with a stricter byte limit.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes this document using its schema byte limit.
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 this document with a stricter byte limit.
Source§impl CiscoIpPhoneIconMenu
impl CiscoIpPhoneIconMenu
Sourcepub fn new(
title: impl Into<String>,
prompt: impl Into<String>,
items: Vec<CiscoIpPhoneIconMenuItem>,
icons: Vec<CiscoIpPhoneIconItem>,
) -> Result<Self, PhoneXmlError>
pub fn new( title: impl Into<String>, prompt: impl Into<String>, items: Vec<CiscoIpPhoneIconMenuItem>, icons: Vec<CiscoIpPhoneIconItem>, ) -> Result<Self, PhoneXmlError>
Builds and validates an inline-icon menu without lifecycle actions.
Sourcepub fn validate(&self) -> Result<(), PhoneXmlError>
pub fn validate(&self) -> Result<(), PhoneXmlError>
Validates display metadata, choice bounds, and bitmap icon geometry.
Trait Implementations§
Source§impl Clone for CiscoIpPhoneIconMenu
impl Clone for CiscoIpPhoneIconMenu
Source§fn clone(&self) -> CiscoIpPhoneIconMenu
fn clone(&self) -> CiscoIpPhoneIconMenu
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 CiscoIpPhoneIconMenu
impl Debug for CiscoIpPhoneIconMenu
Source§impl<'de> Deserialize<'de> for CiscoIpPhoneIconMenu
impl<'de> Deserialize<'de> for CiscoIpPhoneIconMenu
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 CiscoIpPhoneIconMenu
Source§impl PartialEq for CiscoIpPhoneIconMenu
impl PartialEq for CiscoIpPhoneIconMenu
Source§impl PhoneXmlDocument for CiscoIpPhoneIconMenu
impl PhoneXmlDocument for CiscoIpPhoneIconMenu
Source§const ROOT: &'static [u8] = b"CiscoIPPhoneIconMenu"
const ROOT: &'static [u8] = b"CiscoIPPhoneIconMenu"
Exact root element accepted for this document model.
Source§const MAXIMUM_BYTES: usize = PHONE_MENU_MAX_BYTES
const MAXIMUM_BYTES: usize = PHONE_MENU_MAX_BYTES
Default maximum encoded document size, in bytes.
Source§fn validate_document(&self) -> Result<(), PhoneXmlError>
fn validate_document(&self) -> Result<(), PhoneXmlError>
Checks schema invariants that cannot be expressed by Serde types alone.
Source§fn parse_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
fn parse_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Parses the exact schema root within
Self::MAXIMUM_BYTES.Source§fn parse_xml_with_limit(
document: &[u8],
maximum_bytes: usize,
) -> Result<Self, PhoneXmlError>
fn parse_xml_with_limit( document: &[u8], maximum_bytes: usize, ) -> Result<Self, PhoneXmlError>
Parses the exact schema root within a caller-selected byte limit. Read more
Source§fn serialize_xml(&self) -> Result<String, PhoneXmlError>
fn serialize_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes the document within
Self::MAXIMUM_BYTES.Source§fn serialize_xml_with_limit(
&self,
maximum_bytes: usize,
) -> Result<String, PhoneXmlError>
fn serialize_xml_with_limit( &self, maximum_bytes: usize, ) -> Result<String, PhoneXmlError>
Validates and serializes the document within a caller-selected byte limit.
Source§impl Serialize for CiscoIpPhoneIconMenu
impl Serialize for CiscoIpPhoneIconMenu
impl StructuralPartialEq for CiscoIpPhoneIconMenu
Auto Trait Implementations§
impl Freeze for CiscoIpPhoneIconMenu
impl RefUnwindSafe for CiscoIpPhoneIconMenu
impl Send for CiscoIpPhoneIconMenu
impl Sync for CiscoIpPhoneIconMenu
impl Unpin for CiscoIpPhoneIconMenu
impl UnsafeUnpin for CiscoIpPhoneIconMenu
impl UnwindSafe for CiscoIpPhoneIconMenu
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