Struct awr::client::account_info::AccountInfo
source · Expand description
账号信息。
Python
class AccountInfo:
@property
def nickname(self) -> str: ...
@property
def age(self) -> int: ...
@property
def gender(self) -> int: ...
Fields§
§nickname: Py<PyString>
昵称。
age: u8
年龄。
gender: u8
性别。
Trait Implementations§
source§impl Clone for AccountInfo
impl Clone for AccountInfo
source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
Returns a copy 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 AccountInfo
impl Debug for AccountInfo
source§impl IntoPy<Py<PyAny>> for AccountInfo
impl IntoPy<Py<PyAny>> for AccountInfo
source§impl PyClassImpl for AccountInfo
impl PyClassImpl for AccountInfo
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§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type Layout = PyCell<AccountInfo>
type Layout = PyCell<AccountInfo>
Layout
§type ThreadChecker = ThreadCheckerStub<AccountInfo>
type ThreadChecker = ThreadCheckerStub<AccountInfo>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§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
.fn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a AccountInfo
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a AccountInfo
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut AccountInfo
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut AccountInfo
source§impl PyMethods<AccountInfo> for PyClassImplCollector<AccountInfo>
impl PyMethods<AccountInfo> for PyClassImplCollector<AccountInfo>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for AccountInfo
impl PyTypeInfo for AccountInfo
§type AsRefTarget = PyCell<AccountInfo>
type AsRefTarget = PyCell<AccountInfo>
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
Returns the PyTypeObject instance for this type.
§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
§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.§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.