Struct ory_client::models::project_cors::ProjectCors
source · pub struct ProjectCors {
pub enabled: bool,
pub origins: Vec<String>,
}Fields§
§enabled: boolWhether CORS is enabled for this endpoint.
origins: 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
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<'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§fn eq(&self, other: &ProjectCors) -> bool
fn eq(&self, other: &ProjectCors) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ProjectCors
impl Serialize for ProjectCors
impl StructuralPartialEq for ProjectCors
Auto Trait Implementations§
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