kafka-client-engine 0.0.1

Execution and driver-integration layer for the native Kafka client
Documentation
//! Test-only generated-free constructors for host response evidence.

use super::{
    DescribeDelegationTokenHmac, NormalizedDescribeDelegationTokenPrincipal,
    NormalizedDescribeDelegationTokensResponse, NormalizedDescribedDelegationToken,
};

impl NormalizedDescribeDelegationTokenPrincipal {
    pub(crate) const fn fixture(principal_type: String, principal_name: String) -> Self {
        Self::new(principal_type, principal_name)
    }
}

impl NormalizedDescribedDelegationToken {
    #[allow(clippy::too_many_arguments)]
    pub(crate) const fn fixture(
        owner: NormalizedDescribeDelegationTokenPrincipal,
        requester: Option<NormalizedDescribeDelegationTokenPrincipal>,
        issue_timestamp_ms: i64,
        expiry_timestamp_ms: i64,
        max_timestamp_ms: i64,
        token_id: String,
        hmac: Vec<u8>,
        renewers: Vec<NormalizedDescribeDelegationTokenPrincipal>,
    ) -> Self {
        Self::new(
            owner,
            requester,
            issue_timestamp_ms,
            expiry_timestamp_ms,
            max_timestamp_ms,
            token_id,
            DescribeDelegationTokenHmac::new(hmac),
            renewers,
        )
    }
}

impl NormalizedDescribeDelegationTokensResponse {
    pub(crate) const fn fixture(
        throttle_time_ms: u32,
        broker_error_code: i16,
        tokens: Vec<NormalizedDescribedDelegationToken>,
        retained_bytes: usize,
    ) -> Self {
        Self::new(throttle_time_ms, broker_error_code, tokens, retained_bytes)
    }
}