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 describe_feed_generator(&self) -> Result<Output, Error>

Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View).

Source

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

Get a list of feeds (feed generator records) created by the actor (in the actor’s repo).

Source

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

Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.

Source

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

Get a view of an actor’s ‘author feed’ (post and reposts by the author). Does not require auth.

Source

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

Get a hydrated feed from an actor’s selected feed generator. Implemented by App View.

Source

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

Get information about a feed generator. Implemented by AppView.

Source

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

Get information about a list of feed generators.

Source

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

Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service.

Source

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

Get like records which reference a subject (by AT-URI and CID).

Source

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

Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth.

Source

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

Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.

Source

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

Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as ‘hydrating’ a ‘feed skeleton’.

Source

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

Get a list of quotes for a given post.

Source

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

Get a list of reposts for a given post.

Source

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

Get a list of suggested feeds (feed generators) for the requesting account.

Source

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

Get a view of the requesting account’s home timeline. This is expected to be some form of reverse-chronological feed.

Source

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

Find posts matching search criteria, returning views of those posts.

Source

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

Send information about interactions with feed items back to the feed generator that served them.

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.