pub struct SafariStyleSheet {
pub allowed_url_patterns: Option<Vec<String>>,
pub excluded_url_patterns: Option<Vec<String>>,
pub style_sheet: Option<String>,
}Expand description
Safari Style Sheet
Fields§
§allowed_url_patterns: Option<Vec<String>>The webpages that the script can be injected into.
§Availability
- macOS 10.11.5+
§Framework
- Safari Services
excluded_url_patterns: Option<Vec<String>>The webpages that the script can’t be injected into.
§Availability
- macOS 10.11.5+
§Framework
- Safari Services
style_sheet: Option<String>The path to the style sheet, relative to the Resources folder in the app extension’s bundle.
§Availability
- macOS 10.11.5+
§Framework
- Safari Services
Trait Implementations§
Source§impl Clone for SafariStyleSheet
impl Clone for SafariStyleSheet
Source§fn clone(&self) -> SafariStyleSheet
fn clone(&self) -> SafariStyleSheet
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 SafariStyleSheet
impl Debug for SafariStyleSheet
Source§impl Default for SafariStyleSheet
impl Default for SafariStyleSheet
Source§fn default() -> SafariStyleSheet
fn default() -> SafariStyleSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafariStyleSheet
impl<'de> Deserialize<'de> for SafariStyleSheet
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
Source§impl PartialEq for SafariStyleSheet
impl PartialEq for SafariStyleSheet
Source§impl Serialize for SafariStyleSheet
impl Serialize for SafariStyleSheet
impl Eq for SafariStyleSheet
impl StructuralPartialEq for SafariStyleSheet
Auto Trait Implementations§
impl Freeze for SafariStyleSheet
impl RefUnwindSafe for SafariStyleSheet
impl Send for SafariStyleSheet
impl Sync for SafariStyleSheet
impl Unpin for SafariStyleSheet
impl UnwindSafe for SafariStyleSheet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.