shrike 0.1.1

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 SafelinkRemoveRuleInput {
    /// Optional comment about why the rule is being removed
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    /// Optional DID of the user. Only respected when using admin auth.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub created_by: Option<crate::syntax::Did>,
    pub pattern: crate::api::tools::ozone::SafelinkDefsPatternType,
    /// The URL or domain to remove the rule for
    pub url: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// SafelinkRemoveRuleOutput is an alias.
pub type SafelinkRemoveRuleOutput = crate::api::tools::ozone::SafelinkDefsEvent;

/// SafelinkRemoveRule — Remove an existing URL safety rule
pub async fn safelink_remove_rule(
    client: &crate::xrpc::Client,
    input: &SafelinkRemoveRuleInput,
) -> Result<SafelinkRemoveRuleOutput, crate::xrpc::Error> {
    client
        .procedure("tools.ozone.safelink.removeRule", input)
        .await
}