pub struct DevicePlan { /* private fields */ }Expand description
Registered physical iPhone selected for a development artifact.
Implementations§
Source§impl DevicePlan
impl DevicePlan
Sourcepub fn new(
udid: impl Into<String>,
display_name: Option<String>,
) -> Result<Self, SigningValidationError>
pub fn new( udid: impl Into<String>, display_name: Option<String>, ) -> Result<Self, SigningValidationError>
Validate and hash an Apple device identifier without retaining it.
§Errors
Returns SigningValidationError::InvalidDeviceIdentifier for unsafe
identifiers or display names.
Sourcepub fn from_sha256(
udid_sha256: impl Into<String>,
display_name: Option<String>,
) -> Result<Self, SigningValidationError>
pub fn from_sha256( udid_sha256: impl Into<String>, display_name: Option<String>, ) -> Result<Self, SigningValidationError>
Construct a device plan from an existing lowercase SHA-256 digest.
§Errors
Returns SigningValidationError::InvalidDeviceIdentifier for a
malformed digest or unsafe display name.
Sourcepub fn udid_sha256(&self) -> &str
pub fn udid_sha256(&self) -> &str
Return the lowercase SHA-256 of the selected device identifier.
Sourcepub fn matches_udid(&self, udid: &str) -> Result<bool, SigningValidationError>
pub fn matches_udid(&self, udid: &str) -> Result<bool, SigningValidationError>
Validate and compare a raw device identifier without retaining it.
§Errors
Returns SigningValidationError::InvalidDeviceIdentifier when the
candidate is malformed.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Return the optional public device name.
Trait Implementations§
Source§impl Clone for DevicePlan
impl Clone for DevicePlan
Source§impl Debug for DevicePlan
impl Debug for DevicePlan
Source§impl<'de> Deserialize<'de> for DevicePlan
impl<'de> Deserialize<'de> for DevicePlan
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 DevicePlan
Source§impl JsonSchema for DevicePlan
impl JsonSchema for DevicePlan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DevicePlan
impl PartialEq for DevicePlan
Source§impl Serialize for DevicePlan
impl Serialize for DevicePlan
impl StructuralPartialEq for DevicePlan
Auto Trait Implementations§
impl Freeze for DevicePlan
impl RefUnwindSafe for DevicePlan
impl Send for DevicePlan
impl Sync for DevicePlan
impl Unpin for DevicePlan
impl UnsafeUnpin for DevicePlan
impl UnwindSafe for DevicePlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.