Run rustfmt, rust version 1.45.0

This commit is contained in:
Sasha Hilton 2020-07-22 16:35:05 +01:00
parent 258db6ba42
commit 74ad7231ba
11 changed files with 9487 additions and 5333 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
/// of protobuf runtime.
// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0;
#[derive(PartialEq,Clone,Default)]
#[derive(PartialEq, Clone, Default)]
pub struct ClientIssue {
// message fields
level: ::std::option::Option<ClientIssue_Level>,
@ -50,7 +50,6 @@ impl ClientIssue {
// optional .ClientIssue.Level level = 1;
pub fn get_level(&self) -> ClientIssue_Level {
self.level.unwrap_or(ClientIssue_Level::LEVEL_UNKNOWN)
}
@ -69,7 +68,6 @@ impl ClientIssue {
// optional .ClientIssue.Code code = 2;
pub fn get_code(&self) -> ClientIssue_Code {
self.code.unwrap_or(ClientIssue_Code::CODE_UNKNOWN)
}
@ -88,7 +86,6 @@ impl ClientIssue {
// optional int32 repeatCount = 3;
pub fn get_repeatCount(&self) -> i32 {
self.repeatCount.unwrap_or(0)
}
@ -111,26 +108,44 @@ impl ::protobuf::Message for ClientIssue {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.level, 1, &mut self.unknown_fields)?
},
2 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 2, &mut self.unknown_fields)?
},
1 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.level,
1,
&mut self.unknown_fields,
)?,
2 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.code,
2,
&mut self.unknown_fields,
)?,
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
}
let tmp = is.read_int32()?;
self.repeatCount = ::std::option::Option::Some(tmp);
},
}
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
::protobuf::rt::read_unknown_or_skip_group(
field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
};
}
::std::result::Result::Ok(())
@ -154,7 +169,10 @@ impl ::protobuf::Message for ClientIssue {
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.level {
os.write_enum(1, v.value())?;
}
@ -199,29 +217,39 @@ impl ::protobuf::Message for ClientIssue {
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>,
>(
"level",
|m: &ClientIssue| { &m.level },
|m: &mut ClientIssue| { &mut m.level },
|m: &ClientIssue| &m.level,
|m: &mut ClientIssue| &mut m.level,
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>,
>(
"code",
|m: &ClientIssue| { &m.code },
|m: &mut ClientIssue| { &mut m.code },
|m: &ClientIssue| &m.code,
|m: &mut ClientIssue| &mut m.code,
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"repeatCount",
|m: &ClientIssue| { &m.repeatCount },
|m: &mut ClientIssue| { &mut m.repeatCount },
|m: &ClientIssue| &m.repeatCount,
|m: &mut ClientIssue| &mut m.repeatCount,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientIssue>(
"ClientIssue",
fields,
file_descriptor_proto()
file_descriptor_proto(),
)
})
}
@ -229,9 +257,7 @@ impl ::protobuf::Message for ClientIssue {
fn default_instance() -> &'static ClientIssue {
static mut instance: ::protobuf::lazy::Lazy<ClientIssue> = ::protobuf::lazy::Lazy::INIT;
unsafe {
instance.get(ClientIssue::new)
}
unsafe { instance.get(ClientIssue::new) }
}
}
@ -256,7 +282,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue {
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientIssue_Level {
LEVEL_UNKNOWN = 0,
LEVEL_DEBUG = 1,
@ -279,7 +305,7 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Level {
3 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_NOTICE),
4 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_WARNING),
5 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_ERROR),
_ => ::std::option::Option::None
_ => ::std::option::Option::None,
}
}
@ -296,17 +322,20 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Level {
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Level>("ClientIssue.Level", file_descriptor_proto())
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Level>(
"ClientIssue.Level",
file_descriptor_proto(),
)
})
}
}
}
impl ::std::marker::Copy for ClientIssue_Level {
}
impl ::std::marker::Copy for ClientIssue_Level {}
impl ::std::default::Default for ClientIssue_Level {
fn default() -> Self {
@ -320,7 +349,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue_Level {
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientIssue_Code {
CODE_UNKNOWN = 0,
CODE_INDEX_OUT_OF_BOUNDS = 1,
@ -343,7 +372,7 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Code {
3 => ::std::option::Option::Some(ClientIssue_Code::CODE_CACHED_CHANGE),
4 => ::std::option::Option::Some(ClientIssue_Code::CODE_OFFLINE_CHANGE),
5 => ::std::option::Option::Some(ClientIssue_Code::CODE_CONCURRENT_CHANGE),
_ => ::std::option::Option::None
_ => ::std::option::Option::None,
}
}
@ -360,17 +389,20 @@ impl ::protobuf::ProtobufEnum for ClientIssue_Code {
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Code>("ClientIssue.Code", file_descriptor_proto())
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientIssue_Code>(
"ClientIssue.Code",
file_descriptor_proto(),
)
})
}
}
}
impl ::std::marker::Copy for ClientIssue_Code {
}
impl ::std::marker::Copy for ClientIssue_Code {}
impl ::std::default::Default for ClientIssue_Code {
fn default() -> Self {
@ -384,7 +416,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientIssue_Code {
}
}
#[derive(PartialEq,Clone,Default)]
#[derive(PartialEq, Clone, Default)]
pub struct ClientResolveAction {
// message fields
code: ::std::option::Option<ClientResolveAction_Code>,
@ -407,7 +439,6 @@ impl ClientResolveAction {
// optional .ClientResolveAction.Code code = 1;
pub fn get_code(&self) -> ClientResolveAction_Code {
self.code.unwrap_or(ClientResolveAction_Code::CODE_UNKNOWN)
}
@ -426,9 +457,9 @@ impl ClientResolveAction {
// optional .ClientResolveAction.Initiator initiator = 2;
pub fn get_initiator(&self) -> ClientResolveAction_Initiator {
self.initiator.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN)
self.initiator
.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN)
}
pub fn clear_initiator(&mut self) {
self.initiator = ::std::option::Option::None;
@ -449,19 +480,35 @@ impl ::protobuf::Message for ClientResolveAction {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)?
},
2 => {
::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.initiator, 2, &mut self.unknown_fields)?
},
1 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.code,
1,
&mut self.unknown_fields,
)?,
2 => ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(
wire_type,
is,
&mut self.initiator,
2,
&mut self.unknown_fields,
)?,
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
::protobuf::rt::read_unknown_or_skip_group(
field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
};
}
::std::result::Result::Ok(())
@ -482,7 +529,10 @@ impl ::protobuf::Message for ClientResolveAction {
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.code {
os.write_enum(1, v.value())?;
}
@ -524,34 +574,40 @@ impl ::protobuf::Message for ClientResolveAction {
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>,
>(
"code",
|m: &ClientResolveAction| { &m.code },
|m: &mut ClientResolveAction| { &mut m.code },
|m: &ClientResolveAction| &m.code,
|m: &mut ClientResolveAction| &mut m.code,
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>,
>(
"initiator",
|m: &ClientResolveAction| { &m.initiator },
|m: &mut ClientResolveAction| { &mut m.initiator },
|m: &ClientResolveAction| &m.initiator,
|m: &mut ClientResolveAction| &mut m.initiator,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ClientResolveAction>(
"ClientResolveAction",
fields,
file_descriptor_proto()
file_descriptor_proto(),
)
})
}
}
fn default_instance() -> &'static ClientResolveAction {
static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> = ::protobuf::lazy::Lazy::INIT;
unsafe {
instance.get(ClientResolveAction::new)
}
static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> =
::protobuf::lazy::Lazy::INIT;
unsafe { instance.get(ClientResolveAction::new) }
}
}
@ -575,7 +631,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientResolveAction {
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientResolveAction_Code {
CODE_UNKNOWN = 0,
CODE_NO_ACTION = 1,
@ -600,7 +656,7 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
4 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES),
5 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_SEND_DUMP),
6 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE),
_ => ::std::option::Option::None
_ => ::std::option::Option::None,
}
}
@ -618,17 +674,20 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Code>("ClientResolveAction.Code", file_descriptor_proto())
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Code>(
"ClientResolveAction.Code",
file_descriptor_proto(),
)
})
}
}
}
impl ::std::marker::Copy for ClientResolveAction_Code {
}
impl ::std::marker::Copy for ClientResolveAction_Code {}
impl ::std::default::Default for ClientResolveAction_Code {
fn default() -> Self {
@ -642,7 +701,7 @@ impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Code {
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
pub enum ClientResolveAction_Initiator {
INITIATOR_UNKNOWN = 0,
INITIATOR_SERVER = 1,
@ -659,7 +718,7 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
0 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_UNKNOWN),
1 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_SERVER),
2 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_CLIENT),
_ => ::std::option::Option::None
_ => ::std::option::Option::None,
}
}
@ -673,17 +732,20 @@ impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Initiator>("ClientResolveAction.Initiator", file_descriptor_proto())
::protobuf::reflect::EnumDescriptor::new_pb_name::<ClientResolveAction_Initiator>(
"ClientResolveAction.Initiator",
file_descriptor_proto(),
)
})
}
}
}
impl ::std::marker::Copy for ClientResolveAction_Initiator {
}
impl ::std::marker::Copy for ClientResolveAction_Initiator {}
impl ::std::default::Default for ClientResolveAction_Initiator {
fn default() -> Self {
@ -719,16 +781,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x10\x01\x12\x14\n\x10INITIATOR_CLIENT\x10\x02\x1a\0:\0B\0b\x06proto2\
";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<
::protobuf::descriptor::FileDescriptorProto,
> = ::protobuf::lazy::Lazy::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
unsafe { file_descriptor_proto_lazy.get(|| parse_descriptor_proto()) }
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
/// of protobuf runtime.
// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0;
#[derive(PartialEq,Clone,Default)]
#[derive(PartialEq, Clone, Default)]
pub struct Subscription {
// message fields
uri: ::protobuf::SingularField<::std::string::String>,
@ -50,7 +50,6 @@ impl Subscription {
// optional string uri = 1;
pub fn get_uri(&self) -> &str {
match self.uri.as_ref() {
Some(v) => &v,
@ -81,12 +80,13 @@ impl Subscription {
// Take field
pub fn take_uri(&mut self) -> ::std::string::String {
self.uri.take().unwrap_or_else(|| ::std::string::String::new())
self.uri
.take()
.unwrap_or_else(|| ::std::string::String::new())
}
// optional int32 expiry = 2;
pub fn get_expiry(&self) -> i32 {
self.expiry.unwrap_or(0)
}
@ -105,7 +105,6 @@ impl Subscription {
// optional int32 status_code = 3;
pub fn get_status_code(&self) -> i32 {
self.status_code.unwrap_or(0)
}
@ -128,30 +127,42 @@ impl ::protobuf::Message for Subscription {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn merge_from(
&mut self,
is: &mut ::protobuf::CodedInputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
},
}
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
}
let tmp = is.read_int32()?;
self.expiry = ::std::option::Option::Some(tmp);
},
}
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(
wire_type,
));
}
let tmp = is.read_int32()?;
self.status_code = ::std::option::Option::Some(tmp);
},
}
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
::protobuf::rt::read_unknown_or_skip_group(
field_number,
wire_type,
is,
self.mut_unknown_fields(),
)?;
}
};
}
::std::result::Result::Ok(())
@ -175,7 +186,10 @@ impl ::protobuf::Message for Subscription {
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
fn write_to_with_cached_sizes(
&self,
os: &mut ::protobuf::CodedOutputStream<'_>,
) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.uri.as_ref() {
os.write_string(1, &v)?;
}
@ -220,29 +234,41 @@ impl ::protobuf::Message for Subscription {
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> =
::protobuf::lazy::Lazy::INIT;
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"uri",
|m: &Subscription| { &m.uri },
|m: &mut Subscription| { &mut m.uri },
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
fields.push(
::protobuf::reflect::accessor::make_singular_field_accessor::<
_,
::protobuf::types::ProtobufTypeString,
>(
"uri",
|m: &Subscription| &m.uri,
|m: &mut Subscription| &mut m.uri,
),
);
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"expiry",
|m: &Subscription| { &m.expiry },
|m: &mut Subscription| { &mut m.expiry },
|m: &Subscription| &m.expiry,
|m: &mut Subscription| &mut m.expiry,
));
fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
fields.push(::protobuf::reflect::accessor::make_option_accessor::<
_,
::protobuf::types::ProtobufTypeInt32,
>(
"status_code",
|m: &Subscription| { &m.status_code },
|m: &mut Subscription| { &mut m.status_code },
|m: &Subscription| &m.status_code,
|m: &mut Subscription| &mut m.status_code,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Subscription>(
"Subscription",
fields,
file_descriptor_proto()
file_descriptor_proto(),
)
})
}
@ -250,9 +276,7 @@ impl ::protobuf::Message for Subscription {
fn default_instance() -> &'static Subscription {
static mut instance: ::protobuf::lazy::Lazy<Subscription> = ::protobuf::lazy::Lazy::INIT;
unsafe {
instance.get(Subscription::new)
}
unsafe { instance.get(Subscription::new) }
}
}
@ -283,16 +307,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\
us_code\x18\x03\x20\x01(\x05B\0:\0B\0b\x06proto2\
";
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<
::protobuf::descriptor::FileDescriptorProto,
> = ::protobuf::lazy::Lazy::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
unsafe { file_descriptor_proto_lazy.get(|| parse_descriptor_proto()) }
}

File diff suppressed because it is too large Load diff