[][src]Struct rusoto_amplify::CustomRule

pub struct CustomRule {
    pub condition: Option<String>,
    pub source: String,
    pub status: Option<String>,
    pub target: String,
}

Describes a custom rewrite or redirect rule.

Fields

condition: Option<String>

The condition for a URL rewrite or redirect rule, such as a country code.

source: String

The source pattern for a URL rewrite or redirect rule.

status: Option<String>

The status code for a URL rewrite or redirect rule.

200

Represents a 200 rewrite rule.

301

Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.

302

Represents a 302 temporary redirect rule.

404

Represents a 404 redirect rule.

404-200

Represents a 404 rewrite rule.

target: String

The target pattern for a URL rewrite or redirect rule.

Trait Implementations

impl Clone for CustomRule[src]

impl Debug for CustomRule[src]

impl Default for CustomRule[src]

impl<'de> Deserialize<'de> for CustomRule[src]

impl PartialEq<CustomRule> for CustomRule[src]

impl Serialize for CustomRule[src]

impl StructuralPartialEq for CustomRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.