pub struct DiscordService {
pub bot_token: String,
pub open_ai_client: Arc<OpenAIClient>,
}
Fields§
§bot_token: String
§open_ai_client: Arc<OpenAIClient>
Implementations§
Source§impl DiscordService
impl DiscordService
pub fn new(bot_token: String, open_ai_client: Arc<OpenAIClient>) -> Self
pub async fn spawn(self) -> JoinHandle<Result<(), DiscordGPTError>>
Auto Trait Implementations§
impl Freeze for DiscordService
impl !RefUnwindSafe for DiscordService
impl Send for DiscordService
impl Sync for DiscordService
impl Unpin for DiscordService
impl !UnwindSafe for DiscordService
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