pub struct Rule<'a> {
pub method: Method,
pub host: &'a str,
pub path: &'a str,
}Expand description
One allowed endpoint: a method, an exact host, and a path template.
The template is an absolute path whose segments are literals, {name}
placeholders, or a placeholder with a custom-method suffix
({location}:searchLinks), e.g.
/bigquery/v2/projects/{project}/datasets/{dataset}. A literal (and a
suffix) matches only its identical raw spelling, so a percent-encoded
spelling never matches; a placeholder matches any one non-empty segment
that passes the path rules of AllowList.
Fields§
§method: MethodThe method.
host: &'a strThe host, lowercase, without a port.
path: &'a strThe path template.
Implementations§
Trait Implementations§
impl<'a> Copy for Rule<'a>
impl<'a> Eq for Rule<'a>
impl<'a> StructuralPartialEq for Rule<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rule<'a>
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnsafeUnpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'a>
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.