pub struct VideoContentDetailsRegionRestriction {
pub allowed: Option<Vec<String>>,
pub blocked: Option<Vec<String>>,
}
Expand description
DEPRECATED Region restriction of the video.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allowed: Option<Vec<String>>
A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
blocked: Option<Vec<String>>
A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
Trait Implementations§
source§impl Clone for VideoContentDetailsRegionRestriction
impl Clone for VideoContentDetailsRegionRestriction
source§fn clone(&self) -> VideoContentDetailsRegionRestriction
fn clone(&self) -> VideoContentDetailsRegionRestriction
Returns a copy 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 Default for VideoContentDetailsRegionRestriction
impl Default for VideoContentDetailsRegionRestriction
source§fn default() -> VideoContentDetailsRegionRestriction
fn default() -> VideoContentDetailsRegionRestriction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VideoContentDetailsRegionRestriction
impl<'de> Deserialize<'de> for VideoContentDetailsRegionRestriction
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
impl Part for VideoContentDetailsRegionRestriction
Auto Trait Implementations§
impl RefUnwindSafe for VideoContentDetailsRegionRestriction
impl Send for VideoContentDetailsRegionRestriction
impl Sync for VideoContentDetailsRegionRestriction
impl Unpin for VideoContentDetailsRegionRestriction
impl UnwindSafe for VideoContentDetailsRegionRestriction
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