Struct PyMeetingSchedule
pub struct PyMeetingSchedule {
pub(crate) inner: MeetingSchedule,
}Expand description
A central bank’s schedule: its published decision days, with the date each
decision takes effect derived by the bank’s rule — the Fed the next business
day, the ECB the following Wednesday, the Bank of England the decision day.
Pinned on a market with MarketContext.with_meetings, so a policy window
opened on an effective date carries its decision’s name; seeded(bank) is
the embedded 2026 schedule the market uses where none is pinned.
Fields§
§inner: MeetingScheduleImplementations§
§impl PyMeetingSchedule
impl PyMeetingSchedule
fn new(bank: &str, decisions: Vec<NaiveDate>) -> Self
fn seeded(bank: &str) -> PyResult<Self>
fn seeded(bank: &str) -> PyResult<Self>
The embedded schedule of bank ("FED", "ECB", "BOE"); any other
bank raises ValueError naming the seeded ones.
fn effective_dates(&self) -> Vec<NaiveDate>
fn effective_dates(&self) -> Vec<NaiveDate>
The date each decision takes effect, ascending.
fn __eq__(&self, other: &Self) -> bool
fn __repr__(&self) -> String
§impl PyMeetingSchedule
impl PyMeetingSchedule
unsafe fn __pymethod___eq____( py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>
§impl PyMeetingSchedule
impl PyMeetingSchedule
unsafe extern "C" fn __pymethod___richcmp____( slf: *mut PyObject, other: *mut PyObject, op: c_int, ) -> *mut PyObject
Trait Implementations§
§impl Clone for PyMeetingSchedule
impl Clone for PyMeetingSchedule
§fn clone(&self) -> PyMeetingSchedule
fn clone(&self) -> PyMeetingSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl DerefToPyAny for PyMeetingSchedule
§impl IntoPy<Py<PyAny>> for PyMeetingSchedule
impl IntoPy<Py<PyAny>> for PyMeetingSchedule
§impl PyClass for PyMeetingSchedule
impl PyClass for PyMeetingSchedule
§impl PyClassImpl for PyMeetingSchedule
impl PyClassImpl for PyMeetingSchedule
§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PyMeetingSchedule>
type ThreadChecker = SendablePyClass<PyMeetingSchedule>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
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 lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
§impl PyClassNewTextSignature<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
impl PyClassNewTextSignature<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
fn new_text_signature(self) -> Option<&'static str>
§impl PyClass__eq__SlotFragment<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
impl PyClass__eq__SlotFragment<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyMeetingSchedule
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyMeetingSchedule
§impl PyMethods<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
impl PyMethods<PyMeetingSchedule> for PyClassImplCollector<PyMeetingSchedule>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyMeetingSchedule
impl PyTypeInfo for PyMeetingSchedule
§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_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type.Auto Trait Implementations§
impl Freeze for PyMeetingSchedule
impl RefUnwindSafe for PyMeetingSchedule
impl Send for PyMeetingSchedule
impl Sync for PyMeetingSchedule
impl Unpin for PyMeetingSchedule
impl UnsafeUnpin for PyMeetingSchedule
impl UnwindSafe for PyMeetingSchedule
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