pub struct AttachmentAttribution {
pub bundle_id: String,
pub name: Option<String>,
pub adam_id: Option<i64>,
}Expand description
Attribution metadata parsed from the ATTRIBUTION_INFO column.
Fields§
§bundle_id: StringBundle ID stored under bundle-id.
name: Option<String>Display name stored under name.
adam_id: Option<i64>App Store ID stored under adam-id.
Implementations§
Source§impl AttachmentAttribution
impl AttachmentAttribution
Sourcepub fn from_plist(payload: &Value) -> Option<Self>
pub fn from_plist(payload: &Value) -> Option<Self>
Parse an attribution from a deserialized ATTRIBUTION_INFO property list.
Returns None unless the root is a dictionary containing a non-empty
string under bundle-id.
Sourcepub fn app_bundle_id(&self) -> Option<&str>
pub fn app_bundle_id(&self) -> Option<&str>
Return the stored bundle ID when it contains no : separators;
otherwise, return its third :-delimited component.
Sourcepub fn is_drawing(&self) -> bool
pub fn is_drawing(&self) -> bool
Whether the app bundle ID identifies the Messages drawing board.
Trait Implementations§
Source§impl Debug for AttachmentAttribution
impl Debug for AttachmentAttribution
impl Eq for AttachmentAttribution
Source§impl PartialEq for AttachmentAttribution
impl PartialEq for AttachmentAttribution
impl StructuralPartialEq for AttachmentAttribution
Auto Trait Implementations§
impl Freeze for AttachmentAttribution
impl RefUnwindSafe for AttachmentAttribution
impl Send for AttachmentAttribution
impl Sync for AttachmentAttribution
impl Unpin for AttachmentAttribution
impl UnsafeUnpin for AttachmentAttribution
impl UnwindSafe for AttachmentAttribution
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<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.