pub struct UpdateChannel {
pub name: String,
pub key: Rsa<Public>,
pub update_path_prefix: String,
pub scope: Option<String>,
pub replaces_default_rulesets: bool,
}Expand description
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: boolTrait Implementations§
Source§impl Debug for UpdateChannel
impl Debug for UpdateChannel
Source§impl From<&String> for UpdateChannel
impl From<&String> for UpdateChannel
Source§fn from(json_string: &String) -> UpdateChannel
fn from(json_string: &String) -> UpdateChannel
Returns an update channel given a JSON string
§Arguments
json_string- A json string specifying the update channel. Seetests/update_channels.jsonfor 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
Source§impl From<&Value> for UpdateChannel
impl From<&Value> for UpdateChannel
Source§fn from(json_value: &Value) -> UpdateChannel
fn from(json_value: &Value) -> UpdateChannel
Returns an update channel given a serde_json::Value
See the implementation of From<&String> for more detail
Auto Trait Implementations§
impl Freeze for UpdateChannel
impl RefUnwindSafe for UpdateChannel
impl Send for UpdateChannel
impl Sync for UpdateChannel
impl Unpin for UpdateChannel
impl UnwindSafe for UpdateChannel
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