pub struct WidevinePsshData {
pub algorithm: Option<i32>,
pub key_id: Vec<Vec<u8>>,
pub provider: Option<String>,
pub content_id: Option<Vec<u8>>,
pub policy: Option<String>,
pub crypto_period_index: Option<u32>,
pub grouped_license: Option<Vec<u8>>,
pub protection_scheme: Option<i32>,
}
Fields§
§algorithm: Option<i32>
§key_id: Vec<Vec<u8>>
§provider: Option<String>
Content provider name.
content_id: Option<Vec<u8>>
A content identifier, specified by content provider.
policy: Option<String>
The name of a registered policy to be used for this asset.
crypto_period_index: Option<u32>
Crypto period index, for media using key rotation.
grouped_license: Option<Vec<u8>>
Optional protected context for group content. The grouped_license is a serialized SignedMessage.
protection_scheme: Option<i32>
Protection scheme identifying the encryption algorithm. Represented as one of the following 4CC values: ‘cenc’ (AES-CTR), ‘cbc1’ (AES-CBC), ‘cens’ (AES-CTR subsample), ‘cbcs’ (AES-CBC subsample).
Implementations§
Source§impl WidevinePsshData
impl WidevinePsshData
Sourcepub fn algorithm(&self) -> Algorithm
pub fn algorithm(&self) -> Algorithm
Returns the enum value of algorithm
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_algorithm(&mut self, value: Algorithm)
pub fn set_algorithm(&mut self, value: Algorithm)
Sets algorithm
to the provided enum value.
Sourcepub fn provider(&self) -> &str
pub fn provider(&self) -> &str
Returns the value of provider
, or the default value if provider
is unset.
Sourcepub fn content_id(&self) -> &[u8] ⓘ
pub fn content_id(&self) -> &[u8] ⓘ
Returns the value of content_id
, or the default value if content_id
is unset.
Sourcepub fn policy(&self) -> &str
pub fn policy(&self) -> &str
Returns the value of policy
, or the default value if policy
is unset.
Sourcepub fn crypto_period_index(&self) -> u32
pub fn crypto_period_index(&self) -> u32
Returns the value of crypto_period_index
, or the default value if crypto_period_index
is unset.
Sourcepub fn grouped_license(&self) -> &[u8] ⓘ
pub fn grouped_license(&self) -> &[u8] ⓘ
Returns the value of grouped_license
, or the default value if grouped_license
is unset.
Sourcepub fn protection_scheme(&self) -> ProtectionScheme
pub fn protection_scheme(&self) -> ProtectionScheme
Returns the enum value of protection_scheme
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_protection_scheme(&mut self, value: ProtectionScheme)
pub fn set_protection_scheme(&mut self, value: ProtectionScheme)
Sets protection_scheme
to the provided enum value.
Trait Implementations§
Source§impl Clone for WidevinePsshData
impl Clone for WidevinePsshData
Source§fn clone(&self) -> WidevinePsshData
fn clone(&self) -> WidevinePsshData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WidevinePsshData
impl Debug for WidevinePsshData
Source§impl Default for WidevinePsshData
impl Default for WidevinePsshData
Source§impl<'de> Deserialize<'de> for WidevinePsshData
impl<'de> Deserialize<'de> for WidevinePsshData
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>,
Source§impl Message for WidevinePsshData
impl Message for WidevinePsshData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.