aioduct 0.2.5

Async-native HTTP client built directly on hyper 1.x — no hyper-util, no legacy
Documentation
/// A generated RFC 9421 signature base.
#[derive(Clone, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub struct MessageSignatureBase {
    value: String,
}

impl MessageSignatureBase {
    pub(crate) fn new(value: String) -> Self {
        Self { value }
    }

    /// Return the signature base as a string.
    pub fn as_str(&self) -> &str {
        &self.value
    }

    /// Return the signature base bytes that should be passed to a signer.
    pub fn as_bytes(&self) -> &[u8] {
        self.value.as_bytes()
    }

    /// Consume this value into its string representation.
    pub fn into_string(self) -> String {
        self.value
    }
}