pub struct ProfilesApi<'a, S: Storage + Clone> { /* private fields */ }Implementations§
Source§impl<S: Storage + Clone> ProfilesApi<'_, S>
impl<S: Storage + Clone> ProfilesApi<'_, S>
pub async fn rendered_text_for_user( &mut self, user_id: &str, ) -> Result<String, HingeError>
pub async fn me(&self) -> Result<SelfProfileResponse, HingeError>
pub async fn content(&self) -> Result<SelfContentResponse, HingeError>
pub async fn public( &self, user_ids: Vec<String>, ) -> Result<Vec<PublicUserProfile>, HingeError>
pub async fn public_raw_unfiltered( &self, user_ids: Vec<String>, ) -> Result<Value, HingeError>
pub async fn public_content( &self, user_ids: Vec<String>, ) -> Result<Vec<ProfileContentFull>, HingeError>
pub async fn public_content_raw_unfiltered( &self, user_ids: Vec<String>, ) -> Result<Value, HingeError>
pub async fn update(&self, update: ProfileUpdate) -> Result<Value, HingeError>
pub async fn delete_content( &self, content_ids: Vec<String>, ) -> Result<(), HingeError>
Auto Trait Implementations§
impl<'a, S> Freeze for ProfilesApi<'a, S>
impl<'a, S> !RefUnwindSafe for ProfilesApi<'a, S>
impl<'a, S> Send for ProfilesApi<'a, S>where
S: Send,
impl<'a, S> Sync for ProfilesApi<'a, S>where
S: Sync,
impl<'a, S> Unpin for ProfilesApi<'a, S>
impl<'a, S> UnsafeUnpin for ProfilesApi<'a, S>
impl<'a, S> !UnwindSafe for ProfilesApi<'a, S>
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