pub struct Actor {Show 13 fields
pub context: Vec<Value>,
pub id: String,
pub actor_type: String,
pub preferred_username: String,
pub name: String,
pub summary: Option<String>,
pub inbox: String,
pub outbox: String,
pub followers: String,
pub following: String,
pub public_key: PublicKey,
pub endpoints: Option<Endpoints>,
pub also_known_as: Vec<String>,
}Expand description
ActivityPub Actor document (type: Person).
The serialisation preserves the JSON-LD contexts in insertion order
because several major fediverse servers parse the @context array
positionally rather than using a true JSON-LD processor.
Fields§
§context: Vec<Value>§id: String§actor_type: String§preferred_username: String§name: String§summary: Option<String>§inbox: String§outbox: String§followers: String§following: String§public_key: PublicKey§endpoints: Option<Endpoints>§also_known_as: Vec<String>Optional alsoKnownAs — the SAND stack uses this to link the
Actor to a did:nostr identifier.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Actor
impl<'de> Deserialize<'de> for Actor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Actor
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnsafeUnpin for Actor
impl UnwindSafe for Actor
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more