pub struct Service<T>{ /* private fields */ }Implementations§
source§impl<T> Service<T>
impl<T> Service<T>
sourcepub async fn get_preferences(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_preferences( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth.
sourcepub async fn get_profile(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_profile( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth.
sourcepub async fn get_profiles(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_profiles( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get detailed profile views of multiple actors.
sourcepub async fn get_suggestions(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_suggestions( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding.
sourcepub async fn put_preferences(&self, input: Input) -> Result<(), Error<Error>>
pub async fn put_preferences(&self, input: Input) -> Result<(), Error<Error>>
Set the private preferences attached to the account.
sourcepub async fn search_actors(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn search_actors( &self, params: Parameters ) -> Result<Output, Error<Error>>
Find actors (profiles) matching search criteria. Does not require auth.
sourcepub async fn search_actors_typeahead(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn search_actors_typeahead( &self, params: Parameters ) -> Result<Output, Error<Error>>
Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require auth.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Service<T>where
T: RefUnwindSafe,
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>
impl<T> UnwindSafe for Service<T>where
T: RefUnwindSafe,
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