Struct aws_sdk_amplify::model::CustomRule
source · [−]#[non_exhaustive]pub struct CustomRule { /* private fields */ }Expand description
Describes a custom rewrite or redirect rule.
Implementations
sourceimpl CustomRule
impl CustomRule
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
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.
sourceimpl CustomRule
impl CustomRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CustomRule.
Trait Implementations
sourceimpl Clone for CustomRule
impl Clone for CustomRule
sourcefn clone(&self) -> CustomRule
fn clone(&self) -> CustomRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CustomRule
impl Debug for CustomRule
sourceimpl PartialEq<CustomRule> for CustomRule
impl PartialEq<CustomRule> for CustomRule
sourcefn eq(&self, other: &CustomRule) -> bool
fn eq(&self, other: &CustomRule) -> bool
impl StructuralPartialEq for CustomRule
Auto Trait Implementations
impl RefUnwindSafe for CustomRule
impl Send for CustomRule
impl Sync for CustomRule
impl Unpin for CustomRule
impl UnwindSafe for CustomRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more