pub struct CapabilityRemote {
pub urls: Vec<String>,
}
Expand description
Configuration for remote URLs that are associated with the capability.
Fields§
§urls: Vec<String>
Remote domains this capability refers to using the URLPattern standard.
§Examples
- “https://*.mydomain.dev”: allows subdomains of mydomain.dev
- “https://mydomain.dev/api/*”: allows any subpath of mydomain.dev/api
Trait Implementations§
Source§impl Clone for CapabilityRemote
impl Clone for CapabilityRemote
Source§fn clone(&self) -> CapabilityRemote
fn clone(&self) -> CapabilityRemote
Returns a copy 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 CapabilityRemote
impl Debug for CapabilityRemote
Source§impl Default for CapabilityRemote
impl Default for CapabilityRemote
Source§fn default() -> CapabilityRemote
fn default() -> CapabilityRemote
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapabilityRemote
impl<'de> Deserialize<'de> for CapabilityRemote
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 Hash for CapabilityRemote
impl Hash for CapabilityRemote
Source§impl Ord for CapabilityRemote
impl Ord for CapabilityRemote
Source§fn cmp(&self, other: &CapabilityRemote) -> Ordering
fn cmp(&self, other: &CapabilityRemote) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CapabilityRemote
impl PartialEq for CapabilityRemote
Source§impl PartialOrd for CapabilityRemote
impl PartialOrd for CapabilityRemote
Source§impl Serialize for CapabilityRemote
impl Serialize for CapabilityRemote
impl Eq for CapabilityRemote
impl StructuralPartialEq for CapabilityRemote
Auto Trait Implementations§
impl Freeze for CapabilityRemote
impl RefUnwindSafe for CapabilityRemote
impl Send for CapabilityRemote
impl Sync for CapabilityRemote
impl Unpin for CapabilityRemote
impl UnwindSafe for CapabilityRemote
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.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.