// This file is generated by atrium-codegen. DO NOT EDIT.
//!Definitions for the `tools.ozone.team.deleteMember` namespace.
pub const NSID: &str = "tools.ozone.team.deleteMember";
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct InputData {
    pub did: crate::types::string::Did,
}
pub type Input = crate::types::Object<InputData>;
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(tag = "error", content = "message")]
pub enum Error {
    ///The member being deleted does not exist
    MemberNotFound(Option<String>),
    ///You can not delete yourself from the team
    CannotDeleteSelf(Option<String>),
}
impl std::fmt::Display for Error {
    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Error::MemberNotFound(msg) => {
                write!(_f, "MemberNotFound")?;
                if let Some(msg) = msg {
                    write!(_f, ": {msg}")?;
                }
            }
            Error::CannotDeleteSelf(msg) => {
                write!(_f, "CannotDeleteSelf")?;
                if let Some(msg) = msg {
                    write!(_f, ": {msg}")?;
                }
            }
        }
        Ok(())
    }
}
