viam_rust_utils/gen/
proto.rpc.v1.rs

1// @generated
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct Credentials {
5    /// type is the type of credentials being used.
6    #[prost(string, tag="1")]
7    pub r#type: ::prost::alloc::string::String,
8    /// payload is an opaque string used that are of the given type above.
9    #[prost(string, tag="2")]
10    pub payload: ::prost::alloc::string::String,
11}
12/// An AuthenticateRequest contains the credentials used to authenticate.
13#[allow(clippy::derive_partial_eq_without_eq)]
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct AuthenticateRequest {
16    #[prost(string, tag="1")]
17    pub entity: ::prost::alloc::string::String,
18    #[prost(message, optional, tag="2")]
19    pub credentials: ::core::option::Option<Credentials>,
20}
21/// An AuthenticateResponse is returned after successful authentication.
22#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct AuthenticateResponse {
25    /// access_token is a JWT where only the expiration should be deemed
26    /// important.
27    ///
28    /// Future(erd): maybe a refresh_token
29    #[prost(string, tag="1")]
30    pub access_token: ::prost::alloc::string::String,
31}
32/// An AuthenticateToRequest contains the entity to authenticate to.
33#[allow(clippy::derive_partial_eq_without_eq)]
34#[derive(Clone, PartialEq, ::prost::Message)]
35pub struct AuthenticateToRequest {
36    #[prost(string, tag="1")]
37    pub entity: ::prost::alloc::string::String,
38}
39/// An AuthenticateResponse is returned after successful authentication.
40#[allow(clippy::derive_partial_eq_without_eq)]
41#[derive(Clone, PartialEq, ::prost::Message)]
42pub struct AuthenticateToResponse {
43    /// access_token is a JWT where only the expiration should be deemed
44    /// important.
45    ///
46    /// Future(erd): maybe a refresh_token
47    #[prost(string, tag="1")]
48    pub access_token: ::prost::alloc::string::String,
49}
50// @@protoc_insertion_point(module)