Struct apple_codesign::EntitlementsBlob
source · [−]pub struct EntitlementsBlob<'a> { /* private fields */ }
Expand description
Represents an Entitlements blob.
An entitlements blob contains an XML plist with a dict. Keys are strings of the entitlements being requested and values appear to be simple bools.
Implementations
sourceimpl<'a> EntitlementsBlob<'a>
impl<'a> EntitlementsBlob<'a>
sourcepub fn from_string(s: &impl ToString + ?Sized) -> Self
pub fn from_string(s: &impl ToString + ?Sized) -> Self
Construct an instance using any string as the payload.
Trait Implementations
sourceimpl<'a> Blob<'a> for EntitlementsBlob<'a>
impl<'a> Blob<'a> for EntitlementsBlob<'a>
sourcefn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
Attempt to construct an instance by parsing a bytes slice. Read more
sourcefn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize the payload of this blob to bytes. Read more
sourcefn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize this blob to bytes. Read more
sourcefn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
Obtain the digest of the blob using the specified hasher. Read more
sourceimpl<'a> Debug for EntitlementsBlob<'a>
impl<'a> Debug for EntitlementsBlob<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for EntitlementsBlob<'a>
impl<'a> Send for EntitlementsBlob<'a>
impl<'a> Sync for EntitlementsBlob<'a>
impl<'a> Unpin for EntitlementsBlob<'a>
impl<'a> UnwindSafe for EntitlementsBlob<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more