pub struct CommonConfig {
pub prefix: String,
pub keywords: String,
pub category: VideoCategory,
pub privacy_status: PrivacyStatus,
pub playlist_id: String,
pub default_audio_language: String,
pub default_language: String,
pub recording_date: String,
}Expand description
Common configuration shared across multiple videos.
Fields§
§prefix: StringTitle prefix for all videos
keywords: StringComma-separated keywords/tags
category: VideoCategoryVideo category
privacy_status: PrivacyStatusPrivacy status
playlist_id: StringPlaylist ID
default_audio_language: StringDefault audio language for the video
default_language: StringDefault language for the video
recording_date: StringRecording date for the video
Implementations§
Source§impl CommonConfig
impl CommonConfig
Sourcepub fn validate_keywords(&self) -> Result<()>
pub fn validate_keywords(&self) -> Result<()>
Validate keywords are not empty or whitespace only
Trait Implementations§
Source§impl Clone for CommonConfig
impl Clone for CommonConfig
Source§fn clone(&self) -> CommonConfig
fn clone(&self) -> CommonConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonConfig
impl Debug for CommonConfig
Source§impl<'de> Deserialize<'de> for CommonConfig
impl<'de> Deserialize<'de> for CommonConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CommonConfig
impl Serialize for CommonConfig
Source§impl Validate for CommonConfig
impl Validate for CommonConfig
Source§impl<'v_a> ValidateArgs<'v_a> for CommonConfig
impl<'v_a> ValidateArgs<'v_a> for CommonConfig
Auto Trait Implementations§
impl Freeze for CommonConfig
impl RefUnwindSafe for CommonConfig
impl Send for CommonConfig
impl Sync for CommonConfig
impl Unpin for CommonConfig
impl UnsafeUnpin for CommonConfig
impl UnwindSafe for CommonConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more