Skip to main content

tansu_storage/service/
describe_user_scram_credentials.rs

1// Copyright ⓒ 2024-2026 Peter Morgan <peter.james.morgan@gmail.com>
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15use rama::{Context, Service};
16use tansu_sans_io::{
17    ApiKey, DescribeUserScramCredentialsRequest, DescribeUserScramCredentialsResponse,
18};
19use tracing::instrument;
20
21use crate::{Error, Storage};
22
23#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
24pub struct DescribeUserScramCredentialsService;
25
26impl ApiKey for DescribeUserScramCredentialsService {
27    const KEY: i16 = DescribeUserScramCredentialsRequest::KEY;
28}
29
30impl<G> Service<G, DescribeUserScramCredentialsRequest> for DescribeUserScramCredentialsService
31where
32    G: Storage,
33{
34    type Response = DescribeUserScramCredentialsResponse;
35    type Error = Error;
36
37    #[instrument(skip(ctx, req))]
38    async fn serve(
39        &self,
40        ctx: Context<G>,
41        req: DescribeUserScramCredentialsRequest,
42    ) -> Result<Self::Response, Self::Error> {
43        let _ = (ctx, req);
44
45        Ok(DescribeUserScramCredentialsResponse::default())
46    }
47}