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(
ticket_server_addr: SocketAddr,
cors: CorsConfig,
service_info: ServiceInfo
) -> TicketServerConfig
pub fn new( ticket_server_addr: SocketAddr, cors: CorsConfig, service_info: ServiceInfo ) -> TicketServerConfig
Create a new ticket server config.
sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Get the addr.
sourcepub fn cors(&self) -> &CorsConfig
pub fn cors(&self) -> &CorsConfig
Get cors config.
sourcepub fn service_info(&self) -> &ServiceInfo
pub fn service_info(&self) -> &ServiceInfo
Get service info.
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.
sourcepub fn organization_name(&self) -> Option<&str>
pub fn organization_name(&self) -> Option<&str>
Get organization name.
sourcepub fn organization_url(&self) -> Option<&str>
pub fn organization_url(&self) -> Option<&str>
Get the organization url.
sourcepub fn contact_url(&self) -> Option<&str>
pub fn contact_url(&self) -> Option<&str>
Get the contact url.
sourcepub fn documentation_url(&self) -> Option<&str>
pub fn documentation_url(&self) -> Option<&str>
Get the documentation url.
sourcepub fn created_at(&self) -> Option<&str>
pub fn created_at(&self) -> Option<&str>
Get created at.
sourcepub fn updated_at(&self) -> Option<&str>
pub fn updated_at(&self) -> Option<&str>
Get updated at.
sourcepub fn environment(&self) -> Option<&str>
pub fn environment(&self) -> Option<&str>
Get the environment.
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