pub struct RedirectPatch {
pub code: Option<u16>,
pub location: Option<String>,
pub tls: Option<RedirectTls>,
}Expand description
PATCH /redirects/:name body; None fields stay unchanged. The name (and so the
zone) cannot change.
Fields§
§code: Option<u16>One of REDIRECT_CODES.
location: Option<String>http:// or https:// URL, up to 2048 characters.
tls: Option<RedirectTls>New certificate source. Switching to Auto starts issuance.
Implementations§
Trait Implementations§
Source§impl Clone for RedirectPatch
impl Clone for RedirectPatch
Source§fn clone(&self) -> RedirectPatch
fn clone(&self) -> RedirectPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RedirectPatch
impl Debug for RedirectPatch
Source§impl Default for RedirectPatch
impl Default for RedirectPatch
Source§fn default() -> RedirectPatch
fn default() -> RedirectPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RedirectPatch
impl RefUnwindSafe for RedirectPatch
impl Send for RedirectPatch
impl Sync for RedirectPatch
impl Unpin for RedirectPatch
impl UnsafeUnpin for RedirectPatch
impl UnwindSafe for RedirectPatch
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