pub struct Subscription {
pub kind: SubscriptionKind,
pub url: Uri,
pub user_agent: Option<Arc<str>>,
pub proxy: Option<Proxy>,
}Expand description
Options for fetching subscription content.
Fields§
§kind: SubscriptionKindThe type of subscription.
url: UriThe target URL.
user_agent: Option<Arc<str>>The User-Agent.
By default, mihomo.party/v1.8.4 (clash.meta) is used.
proxy: Option<Proxy>The HTTP / Socks5 proxy you may use to fetch the subscription.
If None, no proxy is used.
Implementations§
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§impl Debug for Subscription
impl Debug for Subscription
Source§impl<'de> Deserialize<'de> for Subscription
impl<'de> Deserialize<'de> for Subscription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more