Struct StreamingConfig
pub struct StreamingConfig {
pub catalog_path: String,
pub fs_protocol: String,
pub flush_interval_ms: u64,
pub replace_existing: bool,
pub rotation_config: RotationConfig,
pub writer_backend: WriterBackendType,
pub data_types: Option<Vec<NautilusDataType>>,
pub record_types: Option<Vec<NautilusRecordType>>,
pub instrument_types: Option<Vec<NautilusInstrumentType>>,
pub record_filters: Option<Vec<StreamingRecordFilterConfig>>,
pub params: Option<Params>,
}Expand description
Configuration streaming live or backtest runs to a persistence writer.
Fields§
§catalog_path: StringPath to the data catalog.
fs_protocol: StringFilesystem protocol for the catalog.
flush_interval_ms: u64Flush interval in milliseconds.
replace_existing: boolWhether to replace existing files.
rotation_config: RotationConfigRotation configuration.
writer_backend: WriterBackendTypeWriter backend (Feather, Parquet, or external factory name).
data_types: Option<Vec<NautilusDataType>>Optional data families to write.
record_types: Option<Vec<NautilusRecordType>>Optional record families to write.
instrument_types: Option<Vec<NautilusInstrumentType>>Optional instrument families to write.
record_filters: Option<Vec<StreamingRecordFilterConfig>>Optional record family and identifier filters.
params: Option<Params>Backend-specific writer parameters.
Implementations§
§impl StreamingConfig
impl StreamingConfig
pub fn builder() -> StreamingConfigBuilder
pub fn builder() -> StreamingConfigBuilder
Create an instance of StreamingConfig using the builder syntax
§impl StreamingConfig
impl StreamingConfig
pub fn new(
catalog_path: String,
fs_protocol: String,
flush_interval_ms: u64,
replace_existing: bool,
rotation_config: RotationConfig,
) -> StreamingConfig
pub fn new( catalog_path: String, fs_protocol: String, flush_interval_ms: u64, replace_existing: bool, rotation_config: RotationConfig, ) -> StreamingConfig
Creates new StreamingConfig instance.
Trait Implementations§
§impl Clone for StreamingConfig
impl Clone for StreamingConfig
§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
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 more§impl Debug for StreamingConfig
impl Debug for StreamingConfig
impl DerefToPyAny for StreamingConfig
§impl<'de> Deserialize<'de> for StreamingConfig
impl<'de> Deserialize<'de> for StreamingConfig
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<'a, 'py> FromPyObject<'a, 'py> for StreamingConfigwhere
StreamingConfig: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for StreamingConfigwhere
StreamingConfig: Clone,
§type Error = PyClassGuardError<'a, 'py>
type Error = PyClassGuardError<'a, 'py>
The type returned in the event of a conversion error. Read more
§fn extract(
obj: Borrowed<'a, 'py, PyAny>,
) -> Result<StreamingConfig, <StreamingConfig as FromPyObject<'a, 'py>>::Error>
fn extract( obj: Borrowed<'a, 'py, PyAny>, ) -> Result<StreamingConfig, <StreamingConfig as FromPyObject<'a, 'py>>::Error>
§impl<'py> IntoPyObject<'py> for StreamingConfig
impl<'py> IntoPyObject<'py> for StreamingConfig
§type Target = StreamingConfig
type Target = StreamingConfig
The Python output type
§type Output = Bound<'py, <StreamingConfig as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <StreamingConfig as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<StreamingConfig as IntoPyObject<'py>>::Output, <StreamingConfig as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<StreamingConfig as IntoPyObject<'py>>::Output, <StreamingConfig as IntoPyObject<'py>>::Error>
Performs the conversion.
§impl PyClass for StreamingConfig
impl PyClass for StreamingConfig
§impl PyStubType for StreamingConfig
impl PyStubType for StreamingConfig
§fn type_output() -> TypeInfo
fn type_output() -> TypeInfo
The type to be used in the output signature, i.e. return type of the Python function or methods.
§fn type_input() -> TypeInfo
fn type_input() -> TypeInfo
The type to be used in the input signature, i.e. the arguments of the Python function or methods. Read more
§impl PyTypeInfo for StreamingConfig
impl PyTypeInfo for StreamingConfig
§const NAME: &'static str = <Self as ::pyo3::PyClass>::NAME
const NAME: &'static str = <Self as ::pyo3::PyClass>::NAME
👎Deprecated since 0.28.0:
prefer using ::type_object(py).name() to get the correct runtime value
Class name.
§const MODULE: Option<&'static str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&'static str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
👎Deprecated since 0.28.0:
prefer using ::type_object(py).module() to get the correct runtime value
Module name, if any.
§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<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type.§impl Serialize for StreamingConfig
impl Serialize for StreamingConfig
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnsafeUnpin for StreamingConfig
impl UnwindSafe for StreamingConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<'py, T> FromPyObjectOwned<'py> for Twhere
T: for<'a> FromPyObject<'a, 'py>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§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>
Converts
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
Converts
self into a Python object. Read more§impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
§fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>where
Self: IntoPyObject<'py, Error = !>,
fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>where
Self: IntoPyObject<'py, Error = !>,
Converts
self into a [Py<PyAny>] when the underlying conversion is infallible.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
Returns the expected type as a possible argument for the
isinstance and issubclass function. Read more