pub struct ValidateBaseUrlRewriteResponse {
pub reason: Option<String>,
pub valid: bool,
}Expand description
ValidateBaseUrlRewriteResponse : ValidateBaseURLRewriteResponse is the response shape. The endpoint always returns HTTP 200 with a structured outcome so the client has a single response shape for tracing and so neither side has to special-case 4xx vs. body parsing.
Fields§
§reason: Option<String>A machine-readable reason for negative outcomes. One of "token_not_found", "missing_permission", or "invalid_base_url". Empty when valid is true.
valid: boolWhether the token authorizes the base URL rewrite.
Implementations§
Source§impl ValidateBaseUrlRewriteResponse
impl ValidateBaseUrlRewriteResponse
Sourcepub fn new(valid: bool) -> ValidateBaseUrlRewriteResponse
pub fn new(valid: bool) -> ValidateBaseUrlRewriteResponse
ValidateBaseURLRewriteResponse is the response shape. The endpoint always returns HTTP 200 with a structured outcome so the client has a single response shape for tracing and so neither side has to special-case 4xx vs. body parsing.
Trait Implementations§
Source§impl Clone for ValidateBaseUrlRewriteResponse
impl Clone for ValidateBaseUrlRewriteResponse
Source§fn clone(&self) -> ValidateBaseUrlRewriteResponse
fn clone(&self) -> ValidateBaseUrlRewriteResponse
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 Default for ValidateBaseUrlRewriteResponse
impl Default for ValidateBaseUrlRewriteResponse
Source§fn default() -> ValidateBaseUrlRewriteResponse
fn default() -> ValidateBaseUrlRewriteResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidateBaseUrlRewriteResponse
impl<'de> Deserialize<'de> for ValidateBaseUrlRewriteResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidateBaseUrlRewriteResponse
impl PartialEq for ValidateBaseUrlRewriteResponse
Source§fn eq(&self, other: &ValidateBaseUrlRewriteResponse) -> bool
fn eq(&self, other: &ValidateBaseUrlRewriteResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidateBaseUrlRewriteResponse
Auto Trait Implementations§
impl Freeze for ValidateBaseUrlRewriteResponse
impl RefUnwindSafe for ValidateBaseUrlRewriteResponse
impl Send for ValidateBaseUrlRewriteResponse
impl Sync for ValidateBaseUrlRewriteResponse
impl Unpin for ValidateBaseUrlRewriteResponse
impl UnsafeUnpin for ValidateBaseUrlRewriteResponse
impl UnwindSafe for ValidateBaseUrlRewriteResponse
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