shrike 0.1.0

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TeamAddMemberInput {
    pub did: crate::syntax::Did,
    pub role: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// TeamAddMemberOutput is an alias.
pub type TeamAddMemberOutput = crate::api::tools::ozone::TeamDefsMember;

/// TeamAddMember — Add a member to the ozone team. Requires admin role.
pub async fn team_add_member(
    client: &crate::xrpc::Client,
    input: &TeamAddMemberInput,
) -> Result<TeamAddMemberOutput, crate::xrpc::Error> {
    client.procedure("tools.ozone.team.addMember", input).await
}