fluss/rpc/message/
get_security_token.rs1use crate::proto::{GetFileSystemSecurityTokenRequest, GetFileSystemSecurityTokenResponse};
19use crate::rpc::api_key::ApiKey;
20use crate::rpc::api_version::ApiVersion;
21use crate::rpc::frame::{ReadError, WriteError};
22use crate::rpc::message::{ReadVersionedType, RequestBody, WriteVersionedType};
23use crate::{impl_read_version_type, impl_write_version_type};
24use bytes::{Buf, BufMut};
25use prost::Message;
26
27#[derive(Debug)]
28pub struct GetSecurityTokenRequest {
29 pub inner_request: GetFileSystemSecurityTokenRequest,
30}
31
32impl GetSecurityTokenRequest {
33 pub fn new() -> Self {
34 Self {
35 inner_request: GetFileSystemSecurityTokenRequest {},
36 }
37 }
38}
39
40impl Default for GetSecurityTokenRequest {
41 fn default() -> Self {
42 Self::new()
43 }
44}
45
46impl RequestBody for GetSecurityTokenRequest {
47 type ResponseBody = GetFileSystemSecurityTokenResponse;
48 const API_KEY: ApiKey = ApiKey::GetFileSystemSecurityToken;
49 const REQUEST_VERSION: ApiVersion = ApiVersion(0);
50}
51
52impl_write_version_type!(GetSecurityTokenRequest);
53impl_read_version_type!(GetFileSystemSecurityTokenResponse);