pub struct PyFrameData {
pub game_id: String,
pub guid: Option<String>,
pub state: String,
pub levels_completed: u32,
pub win_levels: u32,
pub available_actions: Vec<u32>,
pub full_reset: bool,
}python only.Expand description
The current state of a game run returned by reset and step calls.
All fields are read-only once the object is constructed by a
:meth:ArcAgiClient.reset or :meth:ArcAgiClient.step call.
ยงSee Also
Fieldsยง
ยงgame_id: StringGame identifier.
guid: Option<String>Unique run identifier assigned by the server.
state: StringCurrent lifecycle state (e.g. "NOT_FINISHED", "WIN").
levels_completed: u32Number of levels completed in this run.
win_levels: u32Total levels that must be completed to win.
available_actions: Vec<u32>Action IDs the agent may send on the next step.
full_reset: boolWhether this response corresponds to a full game reset.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Clone for PyFrameData
impl Clone for PyFrameData
Sourceยงfn clone(&self) -> PyFrameData
fn clone(&self) -> PyFrameData
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for PyFrameData
impl Debug for PyFrameData
Sourceยงimpl<'py> IntoPyObject<'py> for PyFrameData
impl<'py> IntoPyObject<'py> for PyFrameData
Sourceยงtype Target = PyFrameData
type Target = PyFrameData
Sourceยงtype Output = Bound<'py, <PyFrameData as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyFrameData as IntoPyObject<'py>>::Target>
Sourceยงfn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Sourceยงimpl PyClass for PyFrameData
impl PyClass for PyFrameData
Sourceยงimpl PyClassImpl for PyFrameData
impl PyClassImpl for PyFrameData
Sourceยงconst MODULE: Option<&str> = ::core::option::Option::None
const MODULE: Option<&str> = ::core::option::Option::None
Sourceยงconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Sourceยงconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Sourceยงconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Sourceยงconst IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Sourceยงconst IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Sourceยงconst RAW_DOC: &'static CStr = /// The current state of a game run returned by reset and step calls.
///
/// All fields are read-only once the object is constructed by a
/// :meth:`ArcAgiClient.reset` or :meth:`ArcAgiClient.step` call.
///
/// # See Also
///
/// - [ARC-AGI-3 Reference](https://arcprize.org/arc-agi/3)
const RAW_DOC: &'static CStr = /// The current state of a game run returned by reset and step calls. /// /// All fields are read-only once the object is constructed by a /// :meth:`ArcAgiClient.reset` or :meth:`ArcAgiClient.step` call. /// /// # See Also /// /// - [ARC-AGI-3 Reference](https://arcprize.org/arc-agi/3)
Sourceยงconst DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSourceยงtype Layout = <<PyFrameData as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyFrameData>
type Layout = <<PyFrameData as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyFrameData>
Sourceยงtype ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Sourceยงtype PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Sourceยงtype BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], itโs PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Sourceยงfn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Sourceยงfn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Sourceยงimpl PyMethods<PyFrameData> for PyClassImplCollector<PyFrameData>
impl PyMethods<PyFrameData> for PyClassImplCollector<PyFrameData>
fn py_methods(self) -> &'static PyClassItems
Sourceยงimpl PyTypeInfo for PyFrameData
impl PyTypeInfo for PyFrameData
Sourceยงconst NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Sourceยงconst MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Sourceยงfn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Sourceยงfn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
impl DerefToPyAny for PyFrameData
Auto Trait Implementationsยง
impl Freeze for PyFrameData
impl RefUnwindSafe for PyFrameData
impl Send for PyFrameData
impl Sync for PyFrameData
impl Unpin for PyFrameData
impl UnsafeUnpin for PyFrameData
impl UnwindSafe for PyFrameData
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Sourceยงfn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.Sourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Sourceยงimpl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Sourceยงconst NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.