pub struct ProfileBase {
pub id_tag: String,
pub name: String,
pub type: String,
pub profile_pic: Option<String>,
pub keys: Vec<AuthKey>,
}Expand description
Terse self-profile shape returned by /api/me.
Used for server-to-server federation sync (base profile fields + signing
keys). Deliberately omits the x extension map that Profile carries —
peers don’t need tier-filtered UI metadata.
Fields§
§id_tag: String§name: String§type: String§profile_pic: Option<String>§keys: Vec<AuthKey>Trait Implementations§
Source§impl Clone for ProfileBase
impl Clone for ProfileBase
Source§fn clone(&self) -> ProfileBase
fn clone(&self) -> ProfileBase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileBase
impl Debug for ProfileBase
Source§impl<'de> Deserialize<'de> for ProfileBase
impl<'de> Deserialize<'de> for ProfileBase
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 ProfileBase
impl RefUnwindSafe for ProfileBase
impl Send for ProfileBase
impl Sync for ProfileBase
impl Unpin for ProfileBase
impl UnsafeUnpin for ProfileBase
impl UnwindSafe for ProfileBase
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