pub struct UAProfile {
pub head: String,
pub version_match: String,
pub version_target: String,
pub target: SubconverterTarget,
pub clash_new_name: Option<bool>,
pub surge_ver: i32,
}Expand description
User agent profile structure
Fields§
§head: StringBeginning of user agent string to match
version_match: StringVersion string to look for
version_target: StringTarget version to compare with
target: SubconverterTargetTarget format to use
clash_new_name: Option<bool>Whether to use new field names in Clash None means indeterminate (equivalent to tribool indeterminate state)
surge_ver: i32Surge version
Implementations§
Auto Trait Implementations§
impl Freeze for UAProfile
impl RefUnwindSafe for UAProfile
impl Send for UAProfile
impl Sync for UAProfile
impl Unpin for UAProfile
impl UnwindSafe for UAProfile
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