Enum async_graphql::http::Credentials
source · pub enum Credentials {
SameOrigin,
Include,
Omit,
}
Expand description
Indicates whether the user agent should send or receive user credentials (cookies, basic http auth, etc.) from the other domain in the case of cross-origin requests.
Variants§
SameOrigin
Send user credentials if the URL is on the same origin as the calling script. This is the default value.
Include
Always send user credentials, even for cross-origin calls.
Omit
Never send or receive user credentials.
Trait Implementations§
source§impl Debug for Credentials
impl Debug for Credentials
source§impl Default for Credentials
impl Default for Credentials
source§fn default() -> Credentials
fn default() -> Credentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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