pub struct SigningInformation {
pub identifier: Option<String>,
pub team_identifier: Option<String>,
pub entitlements: BTreeMap<String, SigningValue>,
pub sandboxed: bool,
pub status: Option<u32>,
}Fields§
§identifier: Option<String>§team_identifier: Option<String>§entitlements: BTreeMap<String, SigningValue>§sandboxed: bool§status: Option<u32>Implementations§
Source§impl SigningInformation
impl SigningInformation
Sourcepub const fn is_signed(&self) -> bool
pub const fn is_signed(&self) -> bool
Examples found in repository?
examples/07_code_signing_info.rs (line 11)
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4 let code = Code::current()?;
5 let static_code = code.static_code()?;
6 let signing = code.signing_information()?;
7 let task = Task::current()?;
8 println!(
9 "path={:?} signed={} task_identifier={:?} validity_ok={}",
10 static_code.path()?.display(),
11 signing.is_signed(),
12 task.signing_identifier()?,
13 static_code.check_validity().is_ok()
14 );
15 Ok(())
16}Trait Implementations§
Source§impl Clone for SigningInformation
impl Clone for SigningInformation
Source§fn clone(&self) -> SigningInformation
fn clone(&self) -> SigningInformation
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 SigningInformation
impl Debug for SigningInformation
Source§impl PartialEq for SigningInformation
impl PartialEq for SigningInformation
Source§fn eq(&self, other: &SigningInformation) -> bool
fn eq(&self, other: &SigningInformation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SigningInformation
impl StructuralPartialEq for SigningInformation
Auto Trait Implementations§
impl Freeze for SigningInformation
impl RefUnwindSafe for SigningInformation
impl Send for SigningInformation
impl Sync for SigningInformation
impl Unpin for SigningInformation
impl UnsafeUnpin for SigningInformation
impl UnwindSafe for SigningInformation
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