1 2 3 4 5 6 7 8 9 10 11 12 13
use serde::{Deserialize, Serialize};
/// Allows referencing an external resource for extended documentation.
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
pub struct ExternalDocumentation {
/// A short description of the target documentation.
/// CommonMark syntax MAY be used for rich text representation.
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// REQUIRED. The URL for the target documentation.
/// Value MUST be in the format of a URL.
pub url: String,
}