Trait aerostream::feedgenerator::Algorithm

source ·
pub trait Algorithm: Sync + Send {
    // Required methods
    fn get_name(&self) -> String;
    fn get_publisher(&self) -> String;
    fn handler(
        &self,
        limit: Option<usize>,
        cursor: Option<String>,
        access_did: Option<String>,
        jwt: Option<String>
    ) -> AppBskyFeedGetfeedskeleton;

    // Provided method
    fn to_feed(&self) -> AppBskyFeedDescribefeedgeneratorFeed { ... }
}
Expand description

Custom Feed

Required Methods§

source

fn get_name(&self) -> String

source

fn get_publisher(&self) -> String

source

fn handler( &self, limit: Option<usize>, cursor: Option<String>, access_did: Option<String>, jwt: Option<String> ) -> AppBskyFeedGetfeedskeleton

Provided Methods§

Implementors§