pub struct RedirectTargetConfig {
pub default_redirect_target: Option<String>,
pub dynamic_redirect_target_enabled: bool,
pub allowed_redirect_targets: Vec<RedirectTargetRule>,
}Fields§
§default_redirect_target: Option<String>§dynamic_redirect_target_enabled: bool§allowed_redirect_targets: Vec<RedirectTargetRule>Implementations§
Source§impl RedirectTargetConfig
impl RedirectTargetConfig
Sourcepub fn builder() -> RedirectTargetConfigBuilder<((), (), ())>
pub fn builder() -> RedirectTargetConfigBuilder<((), (), ())>
Create a builder for building RedirectTargetConfig.
On the builder, call .default_redirect_target(...)(optional), .dynamic_redirect_target_enabled(...)(optional), .allowed_redirect_targets(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of RedirectTargetConfig.
Source§impl RedirectTargetConfig
impl RedirectTargetConfig
pub fn strict_default(redirect_target: impl Into<String>) -> Self
pub fn dynamic_targets( targets: impl IntoIterator<Item = RedirectTargetRule>, ) -> Self
pub fn dynamic_default_and_dynamic_targets( default_redirect_target: impl Into<String>, targets: impl IntoIterator<Item = RedirectTargetRule>, ) -> Self
pub fn validate_as_uri_reference(&self) -> Result<(), RedirectTargetError>
pub fn validate_as_uri(&self) -> Result<(), RedirectTargetError>
pub fn validate_as_uri_relative(&self) -> Result<(), RedirectTargetError>
Trait Implementations§
Source§impl Clone for RedirectTargetConfig
impl Clone for RedirectTargetConfig
Source§fn clone(&self) -> RedirectTargetConfig
fn clone(&self) -> RedirectTargetConfig
Returns a duplicate 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 RedirectTargetConfig
impl Debug for RedirectTargetConfig
Source§impl<'de> Deserialize<'de> for RedirectTargetConfig
impl<'de> Deserialize<'de> for RedirectTargetConfig
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 PartialEq for RedirectTargetConfig
impl PartialEq for RedirectTargetConfig
Source§impl Serialize for RedirectTargetConfig
impl Serialize for RedirectTargetConfig
impl Eq for RedirectTargetConfig
impl StructuralPartialEq for RedirectTargetConfig
Auto Trait Implementations§
impl Freeze for RedirectTargetConfig
impl RefUnwindSafe for RedirectTargetConfig
impl Send for RedirectTargetConfig
impl Sync for RedirectTargetConfig
impl Unpin for RedirectTargetConfig
impl UnsafeUnpin for RedirectTargetConfig
impl UnwindSafe for RedirectTargetConfig
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