[][src]Struct https_everywhere_lib_core::UpdateChannel

pub struct UpdateChannel {
    pub name: String,
    pub key: Rsa<Public>,
    pub update_path_prefix: String,
    pub scope: Option<String>,
    pub replaces_default_rulesets: bool,
}

An UpdateChannel defines where to find ruleset updates, the key to verify them, the scope they are applied to (which should be a regular expression), and whether they replace the default rulesets included with the application.

Fields

name: Stringkey: Rsa<Public>update_path_prefix: Stringscope: Option<String>replaces_default_rulesets: bool

Trait Implementations

impl<'_> From<&'_ String> for UpdateChannel[src]

fn from(json_string: &String) -> UpdateChannel[src]

Returns an update channel given a JSON string

Arguments

Panics

Panics if a name, update path prefix, or pem is not specified, if the pem file does not parse correctly into an RSA key, or it is not an object

impl<'_> From<&'_ Value> for UpdateChannel[src]

fn from(json_value: &Value) -> UpdateChannel[src]

Returns an update channel given a serde_json::Value

See the implementation of From<&String> for more detail

impl Debug for UpdateChannel[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]