pub struct NewRedirect {
pub zone_id: Uuid,
pub name: String,
pub code: u16,
pub location: String,
pub tls: Option<RedirectTls>,
}Expand description
POST /redirects body.
Fields§
§zone_id: UuidZone the host name belongs to; the caller needs access to it. See
ops::find_zone_for_host.
name: StringHost name inside the zone, e.g. go.example.com (case and a trailing dot do not
matter). It must not have A, AAAA or CNAME records of the user’s own.
code: u16One of REDIRECT_CODES. 301 and 308 are permanent: browsers may cache them for a
long time.
location: Stringhttp:// or https:// URL, up to 2048 characters.
tls: Option<RedirectTls>Where the HTTPS certificate comes from; Core uses RedirectTls::None when this
is None.
Trait Implementations§
Source§impl Clone for NewRedirect
impl Clone for NewRedirect
Source§fn clone(&self) -> NewRedirect
fn clone(&self) -> NewRedirect
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 NewRedirect
impl Debug for NewRedirect
Auto Trait Implementations§
impl Freeze for NewRedirect
impl RefUnwindSafe for NewRedirect
impl Send for NewRedirect
impl Sync for NewRedirect
impl Unpin for NewRedirect
impl UnsafeUnpin for NewRedirect
impl UnwindSafe for NewRedirect
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