From 1e9c97c21f8a4e55420712b054895ff8b4f9a849 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 19 Jun 2026 01:40:38 +0800 Subject: feat(rola-bucket): add bucket bind management Implement bucket bind CRUD operations and config loading, along with CLI integration for listing, setting, and removing bucket bindings. --- rola-utils/space-system/src/space/error.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'rola-utils/space-system/src/space') diff --git a/rola-utils/space-system/src/space/error.rs b/rola-utils/space-system/src/space/error.rs index 8e85010..f039698 100644 --- a/rola-utils/space-system/src/space/error.rs +++ b/rola-utils/space-system/src/space/error.rs @@ -1,3 +1,5 @@ +use serde::Serialize; + #[derive(thiserror::Error, Debug)] pub enum SpaceError { #[error("Space not found")] @@ -19,6 +21,15 @@ pub enum SpaceError { ConfigFileAlreadyExist, } +impl Serialize for SpaceError { + fn serialize(&self, serializer: S) -> Result + where + S: serde::Serializer, + { + serializer.serialize_str(&self.to_string()) + } +} + impl PartialEq for SpaceError { fn eq(&self, other: &Self) -> bool { match (self, other) { -- cgit