Service

Struct Service 

Source
pub struct Service<T>
where T: XrpcClient + Send + Sync,
{ /* private fields */ }
Available on crate feature namespace-appbsky only.

Implementations§

Source§

impl<T> Service<T>
where T: XrpcClient + Send + Sync,

Source

pub async fn get_age_assurance_state(&self) -> Result<Output, Error>

Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.

Source

pub async fn get_config(&self) -> Result<Output, Error>

Get miscellaneous runtime configuration.

Source

pub async fn get_onboarding_suggested_starter_packs( &self, params: Parameters, ) -> Result<Output, Error>

Get a list of suggested starterpacks for onboarding

Source

pub async fn get_onboarding_suggested_starter_packs_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Get a skeleton of suggested starterpacks for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getOnboardingSuggestedStarterPacks

An unspecced view of globally popular feed generators.

Source

pub async fn get_post_thread_other_v2( &self, params: Parameters, ) -> Result<Output, Error>

(NOTE: this endpoint is under development and WILL change without notice. Don’t use it until it is moved out of unspecced or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting app.bsky.unspecced.getPostThreadV2. Does not require auth, but additional metadata and filtering will be applied for authed requests.

Source

pub async fn get_post_thread_v2( &self, params: Parameters, ) -> Result<Output, Error>

(NOTE: this endpoint is under development and WILL change without notice. Don’t use it until it is moved out of unspecced or your application WILL break) Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.

Source

pub async fn get_suggested_feeds( &self, params: Parameters, ) -> Result<Output, Error>

Get a list of suggested feeds

Source

pub async fn get_suggested_feeds_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds

Source

pub async fn get_suggested_starter_packs( &self, params: Parameters, ) -> Result<Output, Error>

Get a list of suggested starterpacks

Source

pub async fn get_suggested_starter_packs_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks

Source

pub async fn get_suggested_users( &self, params: Parameters, ) -> Result<Output, Error>

Get a list of suggested users

Source

pub async fn get_suggested_users_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers

Source

pub async fn get_suggestions_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions

Source

pub async fn get_tagged_suggestions( &self, params: Parameters, ) -> Result<Output, Error>

Get a list of suggestions (feeds and users) tagged with categories

Get a list of trending topics

Get the current trends on the network

Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends

Source

pub async fn init_age_assurance(&self, input: Input) -> Result<Output, Error>

Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user’s age.

Source

pub async fn search_actors_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Backend Actors (profile) search, returns only skeleton.

Source

pub async fn search_posts_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Backend Posts search, returns only skeleton

Source

pub async fn search_starter_packs_skeleton( &self, params: Parameters, ) -> Result<Output, Error>

Backend Starter Pack search, returns only skeleton.

Auto Trait Implementations§

§

impl<T> Freeze for Service<T>

§

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>
where T: Unpin,

§

impl<T> UnwindSafe for Service<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, C> Cacheable<C> for T

Source§

fn cached(self, cache: C) -> Cached<T, C>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Throttleable<P> for T
where P: Default,

Source§

fn throttled(self) -> Throttled<T, P>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.