mikufans_proto_intl/
bilibili.app.archive.middleware.v1.rs1#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4pub struct PlayerArgs {
5 #[prost(int64, tag = "1")]
7 pub qn: i64,
8 #[prost(int64, tag = "2")]
10 pub fnver: i64,
11 #[prost(int64, tag = "3")]
13 pub fnval: i64,
14 #[prost(int64, tag = "4")]
16 pub force_host: i64,
17 #[prost(int64, tag = "5")]
19 pub voice_balance: i64,
20 #[prost(enumeration = "QnPolicy", tag = "6")]
22 pub qn_policy: i32,
23}
24#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
26#[repr(i32)]
27pub enum QnPolicy {
28 Default = 0,
30 AutoQnEnable = 1,
32}
33impl QnPolicy {
34 pub fn as_str_name(&self) -> &'static str {
39 match self {
40 Self::Default => "QN_POLICY_DEFAULT",
41 Self::AutoQnEnable => "QN_POLICY_AUTO_QN_ENABLE",
42 }
43 }
44 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
46 match value {
47 "QN_POLICY_DEFAULT" => Some(Self::Default),
48 "QN_POLICY_AUTO_QN_ENABLE" => Some(Self::AutoQnEnable),
49 _ => None,
50 }
51 }
52}