tansu_storage/service/create_acls.rs
1// Copyright ⓒ 2024-2025 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::{ApiKey, CreateAclsRequest, CreateAclsResponse};
17
18use crate::{Error, Storage};
19
20#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
21pub struct CreateAclsService;
22
23impl ApiKey for CreateAclsService {
24 const KEY: i16 = CreateAclsRequest::KEY;
25}
26
27impl<G> Service<G, CreateAclsRequest> for CreateAclsService
28where
29 G: Storage,
30{
31 type Response = CreateAclsResponse;
32 type Error = Error;
33
34 async fn serve(
35 &self,
36 _ctx: Context<G>,
37 _req: CreateAclsRequest,
38 ) -> Result<Self::Response, Self::Error> {
39 Ok(CreateAclsResponse::default())
40 }
41}