pub struct UrlRestrictions {
pub allowed_schemes: Option<Vec<String>>,
pub allowed_hosts: Option<Vec<String>>,
}Expand description
— URL —
Fields§
§allowed_schemes: Option<Vec<String>>§allowed_hosts: Option<Vec<String>>Trait Implementations§
Source§impl Clone for UrlRestrictions
impl Clone for UrlRestrictions
Source§fn clone(&self) -> UrlRestrictions
fn clone(&self) -> UrlRestrictions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UrlRestrictions
impl RefUnwindSafe for UrlRestrictions
impl Send for UrlRestrictions
impl Sync for UrlRestrictions
impl Unpin for UrlRestrictions
impl UnsafeUnpin for UrlRestrictions
impl UnwindSafe for UrlRestrictions
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