pub struct ProjectCors {
pub enabled: Option<bool>,
pub origins: Option<Vec<String>>,
}Fields§
§enabled: Option<bool>Whether CORS is enabled for this endpoint.
origins: Option<Vec<String>>The allowed origins. Use * to allow all origins. A wildcard can also be used in the subdomain, i.e. https://_*.example.com will allow all origins on all subdomains of example.com.
Implementations§
Source§impl ProjectCors
impl ProjectCors
pub fn new() -> ProjectCors
Trait Implementations§
Source§impl Clone for ProjectCors
impl Clone for ProjectCors
Source§fn clone(&self) -> ProjectCors
fn clone(&self) -> ProjectCors
Returns a copy 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 ProjectCors
impl Debug for ProjectCors
Source§impl Default for ProjectCors
impl Default for ProjectCors
Source§fn default() -> ProjectCors
fn default() -> ProjectCors
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectCors
impl<'de> Deserialize<'de> for ProjectCors
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 ProjectCors
impl PartialEq for ProjectCors
Source§impl Serialize for ProjectCors
impl Serialize for ProjectCors
impl StructuralPartialEq for ProjectCors
Auto Trait Implementations§
impl Freeze for ProjectCors
impl RefUnwindSafe for ProjectCors
impl Send for ProjectCors
impl Sync for ProjectCors
impl Unpin for ProjectCors
impl UnwindSafe for ProjectCors
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