pub struct DefaultProvisioning {
pub device_pool: ProvisioningDevicePool,
pub firmware_loads: Vec<ProvisioningFirmwareLoad>,
}Expand description
Shared fallback configuration rooted at the Default XML element.
Fields§
§device_pool: ProvisioningDevicePool§firmware_loads: Vec<ProvisioningFirmwareLoad>Implementations§
Source§impl DefaultProvisioning
impl DefaultProvisioning
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Parses, bounds, and validates a complete fallback XML document.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Validates and serializes the document within PROVISIONING_MAX_BYTES.
Sourcepub fn write_xml(&self, writer: impl Write) -> Result<(), PhoneXmlError>
pub fn write_xml(&self, writer: impl Write) -> Result<(), PhoneXmlError>
Validates and writes the document to a formatting sink.
Sourcepub fn validate(&self) -> Result<(), PhoneXmlError>
pub fn validate(&self) -> Result<(), PhoneXmlError>
Checks device-pool and firmware-list invariants.
Trait Implementations§
Source§impl Clone for DefaultProvisioning
impl Clone for DefaultProvisioning
Source§fn clone(&self) -> DefaultProvisioning
fn clone(&self) -> DefaultProvisioning
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 DefaultProvisioning
impl Debug for DefaultProvisioning
Source§impl<'de> Deserialize<'de> for DefaultProvisioning
impl<'de> Deserialize<'de> for DefaultProvisioning
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 DefaultProvisioning
Source§impl PartialEq for DefaultProvisioning
impl PartialEq for DefaultProvisioning
Source§impl Serialize for DefaultProvisioning
impl Serialize for DefaultProvisioning
impl StructuralPartialEq for DefaultProvisioning
Auto Trait Implementations§
impl Freeze for DefaultProvisioning
impl RefUnwindSafe for DefaultProvisioning
impl Send for DefaultProvisioning
impl Sync for DefaultProvisioning
impl Unpin for DefaultProvisioning
impl UnsafeUnpin for DefaultProvisioning
impl UnwindSafe for DefaultProvisioning
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