events: Clean up leftover 'src' naming

This commit is contained in:
Jonas Platte 2022-03-28 14:04:19 +02:00
parent ee029901d7
commit 21dead4245
No known key found for this signature in database
GPG Key ID: BBA95679259D342F
3 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ pub struct ImageInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<UInt>,
/// Metadata about the image referred to in `thumbnail_src`.
/// Metadata about the image referred to in `thumbnail_source`.
#[serde(skip_serializing_if = "Option::is_none")]
pub thumbnail_info: Option<Box<ThumbnailInfo>>,

View File

@ -642,7 +642,7 @@ pub struct FileInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<UInt>,
/// Metadata about the image referred to in `thumbnail_src`.
/// Metadata about the image referred to in `thumbnail_source`.
#[serde(skip_serializing_if = "Option::is_none")]
pub thumbnail_info: Option<Box<ThumbnailInfo>>,
@ -732,7 +732,7 @@ pub struct LocationInfo {
)]
pub thumbnail_source: Option<MediaSource>,
/// Metadata about the image referred to in `thumbnail_src.
/// Metadata about the image referred to in `thumbnail_source.
#[serde(skip_serializing_if = "Option::is_none")]
pub thumbnail_info: Option<Box<ThumbnailInfo>>,
}
@ -1073,7 +1073,7 @@ pub struct VideoInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<UInt>,
/// Metadata about the image referred to in `thumbnail_src`.
/// Metadata about the image referred to in `thumbnail_source`.
#[serde(skip_serializing_if = "Option::is_none")]
pub thumbnail_info: Option<Box<ThumbnailInfo>>,

View File

@ -32,7 +32,7 @@ pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<MediaSource>, D::Er
where
D: Deserializer<'de>,
{
Option::<ThumbnailSource>::deserialize(deserializer).map(|src| src.map(Into::into))
Option::<ThumbnailSource>::deserialize(deserializer).map(|source| source.map(Into::into))
}
#[derive(Clone, Debug, Deserialize)]