Skip to main content

windmill_api/models/
commit_kafka_offsets_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.660.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CommitKafkaOffsetsRequest {
16    #[serde(rename = "topic")]
17    pub topic: String,
18    #[serde(rename = "partition")]
19    pub partition: i32,
20    #[serde(rename = "offset")]
21    pub offset: i64,
22}
23
24impl CommitKafkaOffsetsRequest {
25    pub fn new(topic: String, partition: i32, offset: i64) -> CommitKafkaOffsetsRequest {
26        CommitKafkaOffsetsRequest {
27            topic,
28            partition,
29            offset,
30        }
31    }
32}
33