Struct okaeri_sdk::aicensor::AiCensor [−][src]
pub struct AiCensor { /* fields omitted */ }
Implementations
impl AiCensor
[src]
impl AiCensor
[src]pub fn new<S: Into<String>>(token: S) -> Result<Self, OkaeriSdkError>
[src]
pub fn new_with_config<S: Into<String>>(
token: S,
base_url: Option<&str>,
timeout: Option<Duration>
) -> Result<Self, OkaeriSdkError>
[src]
token: S,
base_url: Option<&str>,
timeout: Option<Duration>
) -> Result<Self, OkaeriSdkError>
pub async fn get_prediction(
self,
phrase: &str
) -> Result<CensorPredictionInfo, OkaeriSdkError>
[src]
self,
phrase: &str
) -> Result<CensorPredictionInfo, OkaeriSdkError>
Auto Trait Implementations
impl !RefUnwindSafe for AiCensor
impl Send for AiCensor
impl Sync for AiCensor
impl Unpin for AiCensor
impl !UnwindSafe for AiCensor
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]