beteran-protobuf-rust/src/c2se/identity.rs

109 lines
3.9 KiB
Rust
Raw Permalink Normal View History

2022-08-13 19:02:21 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationRequest {
2022-08-20 12:55:09 +00:00
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationResponse {
2022-08-20 12:55:09 +00:00
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_username_for_duplication_response::Result>,
2022-08-13 19:02:21 +00:00
}
/// Nested message and enum types in `CheckUsernameForDuplicationResponse`.
pub mod check_username_for_duplication_response {
2022-08-20 12:55:09 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationRequest {
2022-08-20 12:55:09 +00:00
#[prost(string, tag = "1")]
pub nickname: ::prost::alloc::string::String,
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationResponse {
2022-08-20 12:55:09 +00:00
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_nickname_for_duplication_response::Result>,
2022-08-13 19:02:21 +00:00
}
/// Nested message and enum types in `CheckNicknameForDuplicationResponse`.
pub mod check_nickname_for_duplication_response {
2022-08-20 12:55:09 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
2022-08-20 12:55:09 +00:00
pub struct CaptchaRequest {}
2022-08-13 19:02:21 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaResponse {
2022-08-20 12:55:09 +00:00
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<captcha_response::Result>,
2022-08-13 19:02:21 +00:00
}
/// Nested message and enum types in `CaptchaResponse`.
pub mod captcha_response {
2022-08-20 12:55:09 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub image: ::prost::alloc::string::String,
}
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninRequest {
2022-08-20 12:55:09 +00:00
#[prost(string, tag = "1")]
pub security_code_hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub security_code: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub password: ::prost::alloc::string::String,
2022-08-13 19:02:21 +00:00
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
2022-08-20 12:55:09 +00:00
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
2022-08-13 19:02:21 +00:00
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
2022-08-20 12:55:09 +00:00
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeRequest {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninWithoutSecurityCodeResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_without_security_code_response::Result>,
}
/// Nested message and enum types in `SigninWithoutSecurityCodeResponse`.
pub mod signin_without_security_code_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub access_token: ::prost::alloc::string::String,
}
2022-08-13 19:02:21 +00:00
}