From b467f7202f5c0c3970e39ea396a0cec0fd6a36ee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 15 Feb 2026 22:25:39 +0100 Subject: chore(rocie-client): Re-generate the client api --- crates/rocie-client/src/apis/mod.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'crates/rocie-client/src/apis/mod.rs') diff --git a/crates/rocie-client/src/apis/mod.rs b/crates/rocie-client/src/apis/mod.rs index dd7464f..c8e4015 100644 --- a/crates/rocie-client/src/apis/mod.rs +++ b/crates/rocie-client/src/apis/mod.rs @@ -16,7 +16,7 @@ pub enum Error { ResponseError(ResponseContent), } -impl fmt::Display for Error { +impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let (module, e) = match self { Error::Reqwest(e) => ("reqwest", e.to_string()), @@ -28,7 +28,7 @@ impl fmt::Display for Error { } } -impl error::Error for Error { +impl error::Error for Error { fn source(&self) -> Option<&(dyn error::Error + 'static)> { Some(match self { Error::Reqwest(e) => e, @@ -39,19 +39,19 @@ impl error::Error for Error { } } -impl From for Error { +impl From for Error { fn from(e: reqwest::Error) -> Self { Error::Reqwest(e) } } -impl From for Error { +impl From for Error { fn from(e: serde_json::Error) -> Self { Error::Serde(e) } } -impl From for Error { +impl From for Error { fn from(e: std::io::Error) -> Self { Error::Io(e) } @@ -78,10 +78,8 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String value, )); } - } - serde_json::Value::String(s) => { - params.push((format!("{}[{}]", prefix, key), s.clone())) - } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), } } @@ -98,7 +96,7 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String enum ContentType { Json, Text, - Unsupported(String), + Unsupported(String) } impl From<&str> for ContentType { @@ -117,13 +115,16 @@ pub mod api_get_auth_inventory_api; pub mod api_get_auth_product_api; pub mod api_get_auth_product_parent_api; pub mod api_get_auth_recipe_api; +pub mod api_get_auth_recipe_parent_api; pub mod api_get_auth_unit_api; pub mod api_get_auth_unit_property_api; pub mod api_get_auth_user_api; +pub mod api_get_no_auth_state_api; pub mod api_set_auth_barcode_api; pub mod api_set_auth_product_api; pub mod api_set_auth_product_parent_api; pub mod api_set_auth_recipe_api; +pub mod api_set_auth_recipe_parent_api; pub mod api_set_auth_unit_api; pub mod api_set_auth_unit_property_api; pub mod api_set_auth_user_api; -- cgit 1.4.1