pub trait IUNNotificationAttachment: PNSObject {
// Provided methods
fn m_attachment_with_identifier_url_options(
identifier: NSString,
url: NSURL,
options: NSDictionary<id, id>,
) -> Result<Self, NSError>
where Self: Sized + FromId { ... }
fn p_identifier(&self) -> NSString { ... }
fn p_url(&self) -> NSURL { ... }
fn p__type(&self) -> NSString { ... }
}
Expand description
A trait containing all the methods for UNNotificationAttachment
Provided Methods§
Sourcefn m_attachment_with_identifier_url_options(
identifier: NSString,
url: NSURL,
options: NSDictionary<id, id>,
) -> Result<Self, NSError>
fn m_attachment_with_identifier_url_options( identifier: NSString, url: NSURL, options: NSDictionary<id, id>, ) -> Result<Self, NSError>
Creates an attachment object from the specified file and options.
Sourcefn p_identifier(&self) -> NSString
fn p_identifier(&self) -> NSString
The unique identifier for the attachment.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.