facti-api 0.2.0

Provides tools for interacting with Factorio REST APIs
use std::borrow::Cow;

use crate::reqwest::FormLike;

/// Sets up wrapper methods to interact with [`reqwest::blocking::multipart::Form`]
/// when contained in a [`crate::reqwest::FormContainer`].
#[doc(hidden)]
impl FormLike for reqwest::blocking::multipart::Form {
    fn new() -> Self {
        Self::new()
    }

    fn text<T, U>(self, name: T, value: U) -> Self
    where
        T: Into<Cow<'static, str>>,
        U: Into<Cow<'static, str>>,
    {
        self.text(name, value)
    }
}