pub struct Akinator(/* private fields */);Expand description
Represents an akinator game
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 Language enum
child_mode : Optional[:class:bool]
when set to True, NSFW content will not be provided
Trait Implementations§
Source§impl PyClass for Akinator
impl PyClass for Akinator
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 Akinator
impl PyClassImpl for Akinator
Source§const DOC: &'static str = "Akinator(*, theme, language, child_mode)\n--\n\nRepresents an akinator game\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 ``Language`` enum\nchild_mode : Optional[:class:`bool`]\n when set to ``True``, NSFW content will not be provided\u{0}"
const DOC: &'static str = "Akinator(*, theme, language, child_mode)\n--\n\nRepresents an akinator game\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 ``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 ThreadChecker = ThreadCheckerStub<Akinator>
type ThreadChecker = ThreadCheckerStub<Akinator>
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<Akinator> for PyClassImplCollector<Akinator>
impl PyMethods<Akinator> for PyClassImplCollector<Akinator>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Akinator
impl PyTypeInfo for Akinator
Source§type AsRefTarget = PyCell<Akinator>
type AsRefTarget = PyCell<Akinator>
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 Akinator
impl !RefUnwindSafe for Akinator
impl Send for Akinator
impl Sync for Akinator
impl Unpin for Akinator
impl !UnwindSafe for Akinator
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.