pub struct Policy<'a> {
pub hosts: &'a [&'a str],
pub max_skew_seconds: i64,
}Expand description
What a signature has to meet.
Fields§
§hosts: &'a [&'a str]The hosts this server answers to — its domain and any aliases. A request signed for another host is refused. A host listed without a port also accepts itself with one, which is how a server on a non-default port is reached; one listed with a port accepts only that port.
max_skew_seconds: i64How far from now a signature may have been made, in either direction.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Policy<'a>
impl<'a> RefUnwindSafe for Policy<'a>
impl<'a> Send for Policy<'a>
impl<'a> Sync for Policy<'a>
impl<'a> Unpin for Policy<'a>
impl<'a> UnsafeUnpin for Policy<'a>
impl<'a> UnwindSafe for Policy<'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