Use pydantic #23

Merged
muellerr merged 4 commits from use-pydantic-for-python-serialization into main 2024-04-29 15:24:49 +02:00
Showing only changes of commit b4bf834c39 - Show all commits

View File

@ -164,7 +164,6 @@ impl fmt::Display for CameraError {
}
}
#[allow(dead_code)]
#[derive(Debug)]
pub struct Ims100BatchHandler {
id: UniqueApidTargetId,
@ -175,7 +174,6 @@ pub struct Ims100BatchHandler {
}
#[allow(non_snake_case)]
#[allow(dead_code)]
impl Ims100BatchHandler {
pub fn new(
id: UniqueApidTargetId,
@ -306,6 +304,7 @@ impl Ims100BatchHandler {
Ok(output)
}
#[allow(dead_code)]
pub fn list_current_images(&self) -> Result<Vec<String>, CameraError> {
let output = Command::new("ls").arg("-l").arg("*.png").output()?;
@ -319,6 +318,7 @@ impl Ims100BatchHandler {
}
#[allow(clippy::too_many_arguments)]
#[allow(dead_code)]
pub fn take_picture_from_str(
&mut self,
R: &str,