pub struct Profile {Show 18 fields
pub id: u16,
pub name: Box<str>,
pub display_name: Box<str>,
pub nickname: Box<str>,
pub lud06: Box<str>,
pub lud16: Box<str>,
pub banner: Box<str>,
pub avatar: Box<str>,
pub about: Box<str>,
pub website: Box<str>,
pub nip05: Box<str>,
pub status_title: Box<str>,
pub status_purpose: Box<str>,
pub status_url: Box<str>,
pub last_updated: u32,
pub flags: ProfileFlags,
pub avatar_cached: Box<str>,
pub banner_cached: Box<str>,
}Expand description
Internal profile with u16 interner handle. All string fields use Box<str>
(16B) instead of String (24B) — profile strings are write-once from metadata.
Fields§
§id: u16§name: Box<str>§display_name: Box<str>§nickname: Box<str>§lud06: Box<str>§lud16: Box<str>§avatar: Box<str>§about: Box<str>§website: Box<str>§nip05: Box<str>§status_title: Box<str>§status_purpose: Box<str>§status_url: Box<str>§last_updated: u32§flags: ProfileFlags§avatar_cached: Box<str>Implementations§
Trait Implementations§
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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