revolt_api 0.6.5

Open source user-first chat platform.
Documentation
/*
 * Revolt API
 *
 * Open source user-first chat platform.
 *
 * The version of the OpenAPI document: 0.6.5
 * Contact: contact@revolt.chat
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct MessageQueryAnyOf {
    /// Message id to search around  Specifying 'nearby' ignores 'before', 'after' and 'sort'. It will also take half of limit rounded as the limits to each side. It also fetches the message ID specified.
    #[serde(rename = "nearby")]
    pub nearby: String,
}

impl MessageQueryAnyOf {
    pub fn new(nearby: String) -> MessageQueryAnyOf {
        MessageQueryAnyOf {
            nearby,
        }
    }
}