diff --git a/src/camera.rs b/src/camera.rs index 73f6dcb..46e3769 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -271,10 +271,10 @@ impl Default for capi::CameraProperties_camera_properties_shape_s { #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct OffsetShapeCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] x: Property, - #[pyo3(get, set)] + #[pyo3(get)] y: Property, } @@ -323,10 +323,10 @@ impl TryFrom fo #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct DigitalLineCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] line_count: u8, - #[pyo3(get, set)] + #[pyo3(get)] names: [String; 8], } @@ -365,10 +365,10 @@ impl TryFrom, - #[pyo3(get, set)] + #[pyo3(get)] exposure: Py, - #[pyo3(get, set)] + #[pyo3(get)] frame_start: Py, } @@ -462,31 +462,31 @@ impl TryFrom for T #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct CameraCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] exposure_time_us: Property, - #[pyo3(get, set)] + #[pyo3(get)] line_interval_us: Property, - #[pyo3(get, set)] + #[pyo3(get)] readout_direction: Property, - #[pyo3(get, set)] + #[pyo3(get)] binning: Property, - #[pyo3(get, set)] + #[pyo3(get)] offset: Py, - #[pyo3(get, set)] + #[pyo3(get)] shape: Py, - #[pyo3(get, set)] + #[pyo3(get)] supported_pixel_types: Vec, - #[pyo3(get, set)] + #[pyo3(get)] digital_lines: Py, - #[pyo3(get, set)] + #[pyo3(get)] triggers: Py, } diff --git a/src/capabilities.rs b/src/capabilities.rs index c08086b..cbe5476 100644 --- a/src/capabilities.rs +++ b/src/capabilities.rs @@ -11,16 +11,16 @@ use crate::{ #[pyclass] #[derive(Clone, Serialize, Deserialize)] pub struct VideoStreamCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] camera: Py, - #[pyo3(get, set)] + #[pyo3(get)] storage: Py, - #[pyo3(get, set)] + #[pyo3(get)] max_frame_count: Py, - #[pyo3(get, set)] + #[pyo3(get)] frame_average_count: Py, } @@ -62,7 +62,7 @@ impl TryFrom for VideoStreamC #[pyclass] #[derive(Clone, Serialize, Deserialize)] pub struct Capabilities { - #[pyo3(get, set)] + #[pyo3(get)] video: (Py, Py), } diff --git a/src/storage.rs b/src/storage.rs index 29e15b7..da48cd2 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -363,16 +363,16 @@ impl Display for capi::String { #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ChunkingShardingCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] is_supported: bool, - #[pyo3(get, set)] + #[pyo3(get)] width: Py, - #[pyo3(get, set)] + #[pyo3(get)] height: Py, - #[pyo3(get, set)] + #[pyo3(get)] planes: Py, } @@ -396,7 +396,7 @@ impl Default for ChunkingShardingCapabilities { #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct MultiscaleCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] is_supported: bool, } @@ -414,13 +414,13 @@ impl Default for MultiscaleCapabilities { #[pyclass] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct StorageCapabilities { - #[pyo3(get, set)] + #[pyo3(get)] chunk_dims_px: Py, - #[pyo3(get, set)] + #[pyo3(get)] shard_dims_chunks: Py, - #[pyo3(get, set)] + #[pyo3(get)] multiscale: Py, }