#[non_exhaustive]pub struct RedirectAction {
pub redirect_uri: String,
/* private fields */
}Available on crate feature
control-service only.Expand description
Redirects a shopper to the provided URI.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.redirect_uri: StringRequired. The URI to which the shopper will be redirected.
Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.
Implementations§
Source§impl RedirectAction
impl RedirectAction
pub fn new() -> Self
Sourcepub fn set_redirect_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_redirect_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of redirect_uri.
§Example
ⓘ
let x = RedirectAction::new().set_redirect_uri("example");Trait Implementations§
Source§impl Clone for RedirectAction
impl Clone for RedirectAction
Source§fn clone(&self) -> RedirectAction
fn clone(&self) -> RedirectAction
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 RedirectAction
impl Debug for RedirectAction
Source§impl Default for RedirectAction
impl Default for RedirectAction
Source§fn default() -> RedirectAction
fn default() -> RedirectAction
Returns the “default value” for a type. Read more
Source§impl Message for RedirectAction
impl Message for RedirectAction
Source§impl PartialEq for RedirectAction
impl PartialEq for RedirectAction
impl StructuralPartialEq for RedirectAction
Auto Trait Implementations§
impl Freeze for RedirectAction
impl RefUnwindSafe for RedirectAction
impl Send for RedirectAction
impl Sync for RedirectAction
impl Unpin for RedirectAction
impl UnwindSafe for RedirectAction
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