events: Clean up leftover 'src' naming
This commit is contained in:
		
							parent
							
								
									ee029901d7
								
							
						
					
					
						commit
						21dead4245
					
				| @ -66,7 +66,7 @@ pub struct ImageInfo { | |||||||
|     #[serde(skip_serializing_if = "Option::is_none")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub size: Option<UInt>, |     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")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub thumbnail_info: Option<Box<ThumbnailInfo>>, |     pub thumbnail_info: Option<Box<ThumbnailInfo>>, | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -642,7 +642,7 @@ pub struct FileInfo { | |||||||
|     #[serde(skip_serializing_if = "Option::is_none")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub size: Option<UInt>, |     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")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub thumbnail_info: Option<Box<ThumbnailInfo>>, |     pub thumbnail_info: Option<Box<ThumbnailInfo>>, | ||||||
| 
 | 
 | ||||||
| @ -732,7 +732,7 @@ pub struct LocationInfo { | |||||||
|     )] |     )] | ||||||
|     pub thumbnail_source: Option<MediaSource>, |     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")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub thumbnail_info: Option<Box<ThumbnailInfo>>, |     pub thumbnail_info: Option<Box<ThumbnailInfo>>, | ||||||
| } | } | ||||||
| @ -1073,7 +1073,7 @@ pub struct VideoInfo { | |||||||
|     #[serde(skip_serializing_if = "Option::is_none")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub size: Option<UInt>, |     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")] |     #[serde(skip_serializing_if = "Option::is_none")] | ||||||
|     pub thumbnail_info: Option<Box<ThumbnailInfo>>, |     pub thumbnail_info: Option<Box<ThumbnailInfo>>, | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<MediaSource>, D::Er | |||||||
| where | where | ||||||
|     D: Deserializer<'de>, |     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)] | #[derive(Clone, Debug, Deserialize)] | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user