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
.source§impl PartialEq for WidevinePsshData
impl PartialEq for WidevinePsshData
source§impl Serialize for WidevinePsshData
impl Serialize for WidevinePsshData
impl StructuralPartialEq for WidevinePsshData
Auto Trait Implementations§
impl Freeze for WidevinePsshData
impl RefUnwindSafe for WidevinePsshData
impl Send for WidevinePsshData
impl Sync for WidevinePsshData
impl Unpin for WidevinePsshData
impl UnwindSafe for WidevinePsshData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)