pub struct Public;Expand description
The Public pseudo-actor used for public audience targeting in
ActivityPub.
The specification defines a single URI, but real Fediverse traffic
contains three spellings. Public::is_public recognises all of them.
Implementations§
Source§impl Public
impl Public
Sourcepub const URI: &'static str = "https://www.w3.org/ns/activitystreams#Public"
pub const URI: &'static str = "https://www.w3.org/ns/activitystreams#Public"
Full public URI per the ActivityPub specification.
Sourcepub const CURIE: &'static str = "as:Public"
pub const CURIE: &'static str = "as:Public"
CURIE form using the as: prefix defined by the AS 2.0 JSON-LD
context document.
Trait Implementations§
impl Copy for Public
impl Eq for Public
impl StructuralPartialEq for Public
Auto Trait Implementations§
impl Freeze for Public
impl RefUnwindSafe for Public
impl Send for Public
impl Sync for Public
impl Unpin for Public
impl UnsafeUnpin for Public
impl UnwindSafe for Public
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.