subconverter 0.2.34

A more powerful utility to convert between proxy subscription format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::parser::yaml::clash::clash_proxy_types::ClashProxyYamlInput;
use serde::Deserialize;

/// Represents a Clash configuration input structure
#[derive(Debug, Clone, Deserialize)]
pub struct ClashYamlInput {
    #[serde(default)]
    pub proxies: Vec<ClashProxyYamlInput>,
}

impl ClashYamlInput {
    /// Extract proxies from the configuration
    pub fn extract_proxies(self) -> Vec<ClashProxyYamlInput> {
        self.proxies
    }
}