pub struct UrlRestrictions {
pub allowed_schemes: Option<Vec<String>>,
pub allowed_hosts: Option<Vec<String>>,
}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 moreSource§impl Debug for UrlRestrictions
impl Debug for UrlRestrictions
Source§impl Default for UrlRestrictions
impl Default for UrlRestrictions
Source§fn default() -> UrlRestrictions
fn default() -> UrlRestrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UrlRestrictions
impl<'de> Deserialize<'de> for UrlRestrictions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UrlRestrictions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UrlRestrictions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UrlRestrictions
Source§impl FromSchema for UrlRestrictions
impl FromSchema for UrlRestrictions
fn from_value(value: &SchemaValue) -> Result<UrlRestrictions, FromSchemaError>
Source§impl IntoSchema for UrlRestrictions
impl IntoSchema for UrlRestrictions
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for UrlRestrictions
impl PartialEq for UrlRestrictions
Source§impl Serialize for UrlRestrictions
impl Serialize for UrlRestrictions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UrlRestrictions
Auto 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