pub struct ClientData {Show 23 fields
pub shard_manager: Arc<ShardManager>,
pub nekos_client: NekosClient,
pub r6stats_client: R6StatsClient,
pub r6tracker_client: R6TrackerClient,
pub rule34_client: Rule34Client,
pub quizizz_client: QuizizzClient,
pub fml_client: FmlClient,
pub shift_client: ShiftClient,
pub reddit_embed_data: RedditEmbedData,
pub enabled_check_data: EnabledCheckData,
pub insta_client: Client,
pub deviantart_client: DeviantartClient,
pub urban_client: UrbanClient,
pub xkcd_client: Client,
pub tic_tac_toe_data: TicTacToeData,
pub iqdb_client: IqdbClient,
pub sauce_nao_client: SauceNaoClient,
pub open_ai_client: Client,
pub yodaspeak: Client,
pub tiktok_data: TikTokData,
pub encoder_task: EncoderTask,
pub db: Database,
pub config: Arc<Config>,
}Expand description
The ClientData.
Fields§
§shard_manager: Arc<ShardManager>The discord shard_manager
nekos_client: NekosClientThe client for nekos
r6stats_client: R6StatsClientThe R6Stats client
r6tracker_client: R6TrackerClientThe r6tracker client
rule34_client: Rule34ClientThe rule34 client
quizizz_client: QuizizzClientThe quizizz client
fml_client: FmlClientThe fml client
shift_client: ShiftClientThe shift client
reddit_embed_data: RedditEmbedDataThe reddit embed data
enabled_check_data: EnabledCheckDataThe enabled check data
insta_client: ClientThe insta client data
deviantart_client: DeviantartClientThe deviantart client
urban_client: UrbanClientThe urban dictionary client
xkcd_client: ClientThe xkcd client
tic_tac_toe_data: TicTacToeDataThe tic tac toe data
iqdb_client: IqdbClientThe iqdb client
sauce_nao_client: SauceNaoClientThe sauce nao client
open_ai_client: ClientThe open ai client
yodaspeak: ClientThe yodaspeak client
tiktok_data: TikTokDataTikTokData
encoder_task: EncoderTaskEncoder Task
db: DatabaseThe database
config: Arc<Config>The config
Implementations§
Source§impl ClientData
impl ClientData
Sourcepub async fn init(
shard_manager: Arc<ShardManager>,
config: Arc<Config>,
db: Database,
) -> Result<Self>
pub async fn init( shard_manager: Arc<ShardManager>, config: Arc<Config>, db: Database, ) -> Result<Self>
Init this client data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientData
impl !RefUnwindSafe for ClientData
impl Send for ClientData
impl Sync for ClientData
impl Unpin for ClientData
impl !UnwindSafe for ClientData
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request