aspectratio typo
This commit is contained in:
@@ -87,7 +87,7 @@ pub struct VideoItem {
|
|||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub preview: Option<String>,
|
pub preview: Option<String>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub aspectRation: Option<f32>,
|
pub aspectRatio: Option<f32>,
|
||||||
}
|
}
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
impl VideoItem {
|
impl VideoItem {
|
||||||
@@ -116,7 +116,7 @@ impl VideoItem {
|
|||||||
formats: None, // Placeholder for formats
|
formats: None, // Placeholder for formats
|
||||||
embed: None, // Placeholder for embed information
|
embed: None, // Placeholder for embed information
|
||||||
preview: None,
|
preview: None,
|
||||||
aspectRation: None,
|
aspectRatio: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn tags(mut self, tags: Vec<String>) -> Self {
|
pub fn tags(mut self, tags: Vec<String>) -> Self {
|
||||||
@@ -168,7 +168,7 @@ impl VideoItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn aspect_ratio(mut self, aspect_ratio: f32) -> Self {
|
pub fn aspect_ratio(mut self, aspect_ratio: f32) -> Self {
|
||||||
self.aspectRation = Some(aspect_ratio);
|
self.aspectRatio = Some(aspect_ratio);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user