[−][src]Struct https_everywhere_lib_core::UpdateChannel
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: String
key: Rsa<Public>
update_path_prefix: String
scope: 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
json_string
- A json string specifying the update channel. Seetests/update_channels.json
for the correct format
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
impl Unpin for UpdateChannel
impl Sync for UpdateChannel
impl Send for UpdateChannel
impl UnwindSafe for UpdateChannel
impl RefUnwindSafe for UpdateChannel
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,