late 0.0.297

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// WebhookPayloadMessageMetadataStoryReply : Instagram only. Populated when an IG user replies to one of the account's stories (Meta `messaging_story_replies`). Mutually exclusive in practice with `isStoryMention`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookPayloadMessageMetadataStoryReply {
    /// The Instagram story ID the user replied to.
    #[serde(rename = "storyId")]
    pub story_id: String,
    /// Meta CDN URL for the story media. Expires approximately 24 hours after the story posted; consumers must fetch promptly or treat 404s as expected.
    #[serde(rename = "storyUrl", skip_serializing_if = "Option::is_none")]
    pub story_url: Option<String>,
}

impl WebhookPayloadMessageMetadataStoryReply {
    /// Instagram only. Populated when an IG user replies to one of the account's stories (Meta `messaging_story_replies`). Mutually exclusive in practice with `isStoryMention`.
    pub fn new(story_id: String) -> WebhookPayloadMessageMetadataStoryReply {
        WebhookPayloadMessageMetadataStoryReply {
            story_id,
            story_url: None,
        }
    }
}