DeliverableObject

Trait DeliverableObject 

Source
pub trait DeliverableObject: Object {
    // Required methods
    fn to(&self) -> &[Url];
    fn cc(&self) -> &[Url];

    // Provided methods
    fn is_public(&self) -> bool { ... }
    fn has_named_recipient(&self, actor_id: &Url) -> bool { ... }
}
Expand description

An object that has associated delivery fields

Required Methods§

Source

fn to(&self) -> &[Url]

Who the object is intended for

Source

fn cc(&self) -> &[Url]

Additional actors the object should be delivered to

Provided Methods§

Source

fn is_public(&self) -> bool

Determine whether an object is public

Source

fn has_named_recipient(&self, actor_id: &Url) -> bool

Determine if a given actor is in the list of recipients for this object

Implementations on Foreign Types§

Source§

impl<'a, T> DeliverableObject for &'a T

Source§

fn to(&self) -> &[Url]

Source§

fn cc(&self) -> &[Url]

Source§

impl<'a, T> DeliverableObject for &'a mut T

Source§

fn to(&self) -> &[Url]

Source§

fn cc(&self) -> &[Url]

Source§

impl<T> DeliverableObject for Box<T>

Source§

fn to(&self) -> &[Url]

Source§

fn cc(&self) -> &[Url]

Source§

impl<T> DeliverableObject for Rc<T>

Source§

fn to(&self) -> &[Url]

Source§

fn cc(&self) -> &[Url]

Source§

impl<T> DeliverableObject for Arc<T>

Source§

fn to(&self) -> &[Url]

Source§

fn cc(&self) -> &[Url]

Implementors§