Struct netlify_toml::Redirect [−][src]
pub struct Redirect {
pub from: String,
pub to: Option<String>,
pub status: u32,
pub force: bool,
pub headers: Option<HashMap<String, String>>,
pub query: Option<HashMap<String, String>>,
pub conditions: Option<HashMap<String, HashSet<String>>>,
pub signed: Option<String>,
pub edge_handler: Option<String>,
}
Expand description
Redirect holds information about a url redirect.
Fields
from: String
to: Option<String>
status: u32
force: bool
headers: Option<HashMap<String, String>>
query: Option<HashMap<String, String>>
conditions: Option<HashMap<String, HashSet<String>>>
signed: Option<String>
edge_handler: Option<String>
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Redirect
impl UnwindSafe for Redirect
Blanket Implementations
Mutably borrows from an owned value. Read more