pub struct AsyncAkinator(/* private fields */);
Expand description
Represents an async akinator game
.. note ::
All attributes and methods are the same as the blocking :class:Akinator
class
but instead all methods should be awaited
Parameters are also set as properties which also have a setter to change the values if necessary in the future
§Parameters
theme : Optional[:class:Theme
]
the theme of the akinator game, would be one of Characters
, Animals
or Objects
pass in using an answer enum, using the from_str
classmethod if necessary, defaults to Characters
language : Optional[:class:Language
]
the language for the akinator game, refer to the :class:Language
enum
child_mode : Optional[:class:bool
]
when set to True
, NSFW content will not be provided
Trait Implementations§
Source§impl Clone for AsyncAkinator
impl Clone for AsyncAkinator
Source§fn clone(&self) -> AsyncAkinator
fn clone(&self) -> AsyncAkinator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AsyncAkinator
impl Debug for AsyncAkinator
Source§impl PyClass for AsyncAkinator
impl PyClass for AsyncAkinator
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.Source§impl PyClassImpl for AsyncAkinator
impl PyClassImpl for AsyncAkinator
Source§const DOC: &'static str = "AsyncAkinator(*, theme, language, child_mode)\n--\n\nRepresents an async akinator game\n\n.. note ::\n All attributes and methods are the same as the blocking :class:`Akinator` class\n but instead all methods should be awaited\n\nParameters are also set as properties which also have a setter to change the values if necessary in the future\n\nParameters\n----------\ntheme : Optional[:class:`Theme`]\n the theme of the akinator game, would be one of ``Characters``, ``Animals`` or ``Objects``\n pass in using an answer enum, using the ``from_str`` classmethod if necessary, defaults to ``Characters``\nlanguage : Optional[:class:`Language`]\n the language for the akinator game, refer to the :class:`Language` enum\nchild_mode : Optional[:class:`bool`]\n when set to ``True``, NSFW content will not be provided\u{0}"
const DOC: &'static str = "AsyncAkinator(*, theme, language, child_mode)\n--\n\nRepresents an async akinator game\n\n.. note ::\n All attributes and methods are the same as the blocking :class:`Akinator` class\n but instead all methods should be awaited\n\nParameters are also set as properties which also have a setter to change the values if necessary in the future\n\nParameters\n----------\ntheme : Optional[:class:`Theme`]\n the theme of the akinator game, would be one of ``Characters``, ``Animals`` or ``Objects``\n pass in using an answer enum, using the ``from_str`` classmethod if necessary, defaults to ``Characters``\nlanguage : Optional[:class:`Language`]\n the language for the akinator game, refer to the :class:`Language` enum\nchild_mode : Optional[:class:`bool`]\n when set to ``True``, NSFW content will not be provided\u{0}"
Class doc string
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§type Layout = PyCell<AsyncAkinator>
type Layout = PyCell<AsyncAkinator>
Layout
Source§type ThreadChecker = ThreadCheckerStub<AsyncAkinator>
type ThreadChecker = ThreadCheckerStub<AsyncAkinator>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyMethods<AsyncAkinator> for PyClassImplCollector<AsyncAkinator>
impl PyMethods<AsyncAkinator> for PyClassImplCollector<AsyncAkinator>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for AsyncAkinator
impl PyTypeInfo for AsyncAkinator
Source§type AsRefTarget = PyCell<AsyncAkinator>
type AsRefTarget = PyCell<AsyncAkinator>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.Auto Trait Implementations§
impl Freeze for AsyncAkinator
impl !RefUnwindSafe for AsyncAkinator
impl Send for AsyncAkinator
impl Sync for AsyncAkinator
impl Unpin for AsyncAkinator
impl !UnwindSafe for AsyncAkinator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.