pub struct WidgetScoped {
pub match_pattern: String,
pub connect_domains: Vec<String>,
pub connect_domains_mode: Mode,
pub resource_domains: Vec<String>,
pub resource_domains_mode: Mode,
pub frame_domains: Vec<String>,
pub frame_domains_mode: Mode,
}Expand description
Per-widget override matched by glob on resource URI.
Directives are addressed as two paired fields: a domains list and a mode.
Omitting both pairs for a directive leaves that directive untouched by the
widget. Setting mode = "replace" with an empty domains list clears the
accumulated domains for that directive.
Fields§
§match_pattern: StringGlob pattern matched against a resource URI. * matches any sequence,
? matches one character. Literal everywhere else.
connect_domains: Vec<String>§connect_domains_mode: Mode§resource_domains: Vec<String>§resource_domains_mode: Mode§frame_domains: Vec<String>§frame_domains_mode: ModeTrait Implementations§
Source§impl Clone for WidgetScoped
impl Clone for WidgetScoped
Source§fn clone(&self) -> WidgetScoped
fn clone(&self) -> WidgetScoped
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetScoped
impl Debug for WidgetScoped
Source§impl Default for WidgetScoped
impl Default for WidgetScoped
Source§fn default() -> WidgetScoped
fn default() -> WidgetScoped
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WidgetScopedwhere
WidgetScoped: Default,
impl<'de> Deserialize<'de> for WidgetScopedwhere
WidgetScoped: Default,
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 WidgetScoped
impl RefUnwindSafe for WidgetScoped
impl Send for WidgetScoped
impl Sync for WidgetScoped
impl Unpin for WidgetScoped
impl UnsafeUnpin for WidgetScoped
impl UnwindSafe for WidgetScoped
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