Lines
0 %
Functions
use crate::commands::{
Command, Request, RequestParserResult, ResponseAttributes, ResponseParserError,
};
pub struct Decoders;
pub struct Decoder {
pub plugin: String,
pub suffixes: Vec<String>,
pub mime_types: Vec<String>,
}
pub type DecodersResponse = Vec<Decoder>;
impl Command for Decoders {
type Response = DecodersResponse;
const COMMAND: &'static str = "decoders";
fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
debug_assert!(parts.next().is_none());
Ok((Request::Decoders, ""))
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
unimplemented!()