#[non_exhaustive]pub enum RequestCredentials {
Omit = 0,
SameOrigin = 1,
Include = 2,
}Expand description
The RequestCredentials enum.
This API requires the following crate features to be activated: RequestCredentials
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl RequestCredentials
impl RequestCredentials
Sourcepub fn from_str(s: &str) -> Option<RequestCredentials>
pub fn from_str(s: &str) -> Option<RequestCredentials>
Convert a string to this enum variant.
Sourcepub fn from_js_value(obj: &JsValue) -> Option<RequestCredentials>
pub fn from_js_value(obj: &JsValue) -> Option<RequestCredentials>
Convert a JsValue (if it’s a string) to this enum variant.
Trait Implementations§
Source§impl BatchableResult for RequestCredentials
impl BatchableResult for RequestCredentials
Source§impl BinaryDecode for RequestCredentials
impl BinaryDecode for RequestCredentials
fn decode(decoder: &mut DecodedData<'_>) -> Result<Self, DecodeError>
Source§impl BinaryEncode for RequestCredentials
impl BinaryEncode for RequestCredentials
fn encode(self, encoder: &mut EncodedData)
Source§impl Clone for RequestCredentials
impl Clone for RequestCredentials
Source§fn clone(&self) -> RequestCredentials
fn clone(&self) -> RequestCredentials
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 RequestCredentials
impl Debug for RequestCredentials
Source§impl EncodeTypeDef for RequestCredentials
impl EncodeTypeDef for RequestCredentials
Source§fn encode_type_def(buf: &mut Vec<u8>)
fn encode_type_def(buf: &mut Vec<u8>)
Encode this type’s definition into the buffer.
For primitives, this is just the TypeTag byte.
For callbacks, this includes param count, param types, and return type.
Source§impl From<RequestCredentials> for JsValue
impl From<RequestCredentials> for JsValue
Source§fn from(val: RequestCredentials) -> Self
fn from(val: RequestCredentials) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestCredentials
impl PartialEq for RequestCredentials
impl Copy for RequestCredentials
impl Eq for RequestCredentials
impl StructuralPartialEq for RequestCredentials
Auto Trait Implementations§
impl Freeze for RequestCredentials
impl RefUnwindSafe for RequestCredentials
impl Send for RequestCredentials
impl Sync for RequestCredentials
impl Unpin for RequestCredentials
impl UnwindSafe for RequestCredentials
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