Struct htsget_lambda::TicketServerConfig
source · pub struct TicketServerConfig { /* private fields */ }
Expand description
Configuration for the htsget ticket server.
Implementations§
source§impl TicketServerConfig
impl TicketServerConfig
sourcepub fn new(
addr: SocketAddr,
tls: Option<TlsServerConfig>,
cors: CorsConfig
) -> TicketServerConfig
pub fn new( addr: SocketAddr, tls: Option<TlsServerConfig>, cors: CorsConfig ) -> TicketServerConfig
Create a new ticket server config.
sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Get the addr.
sourcepub fn tls(&self) -> Option<&TlsServerConfig>
pub fn tls(&self) -> Option<&TlsServerConfig>
Get the TLS config.
sourcepub fn into_tls(self) -> Option<TlsServerConfig>
pub fn into_tls(self) -> Option<TlsServerConfig>
Get the TLS config.
sourcepub fn cors(&self) -> &CorsConfig
pub fn cors(&self) -> &CorsConfig
Get cors config.
sourcepub fn allow_credentials(&self) -> bool
pub fn allow_credentials(&self) -> bool
Get allow credentials.
sourcepub fn allow_origins(&self) -> &AllowType<HeaderValue, TaggedAllowTypes>
pub fn allow_origins(&self) -> &AllowType<HeaderValue, TaggedAllowTypes>
Get allow origins.
sourcepub fn allow_headers(&self) -> &AllowType<HeaderName, TaggedTypeAll>
pub fn allow_headers(&self) -> &AllowType<HeaderName, TaggedTypeAll>
Get allow headers.
sourcepub fn allow_methods(&self) -> &AllowType<Method, TaggedTypeAll>
pub fn allow_methods(&self) -> &AllowType<Method, TaggedTypeAll>
Get allow methods.
sourcepub fn expose_headers(&self) -> &AllowType<HeaderName, TaggedTypeAll>
pub fn expose_headers(&self) -> &AllowType<HeaderName, TaggedTypeAll>
Get expose headers.
Trait Implementations§
source§impl Clone for TicketServerConfig
impl Clone for TicketServerConfig
source§fn clone(&self) -> TicketServerConfig
fn clone(&self) -> TicketServerConfig
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 TicketServerConfig
impl Debug for TicketServerConfig
source§impl Default for TicketServerConfig
impl Default for TicketServerConfig
source§fn default() -> TicketServerConfig
fn default() -> TicketServerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TicketServerConfigwhere
TicketServerConfig: Default,
impl<'de> Deserialize<'de> for TicketServerConfigwhere TicketServerConfig: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TicketServerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TicketServerConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for TicketServerConfig
impl Serialize for TicketServerConfig
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TicketServerConfig
impl Send for TicketServerConfig
impl Sync for TicketServerConfig
impl Unpin for TicketServerConfig
impl !UnwindSafe for TicketServerConfig
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