pub struct GatewaySpec {
pub paths: Vec<String>,
pub use_subdomains: bool,
pub no_dns_link: bool,
pub inline_dns_link: Option<Flag>,
pub deserialized_responses: Option<Flag>,
}Expand description
Gateway specification for public gateways
Fields§
§paths: Vec<String>Paths to serve (e.g., “/ipfs”, “/ipns”)
use_subdomains: boolUse subdomain-based gateway
no_dns_link: boolDisable DNSLink for this gateway
inline_dns_link: Option<Flag>Inline DNSLink resolution
deserialized_responses: Option<Flag>Enable deserialized responses for this gateway
Trait Implementations§
Source§impl Clone for GatewaySpec
impl Clone for GatewaySpec
Source§fn clone(&self) -> GatewaySpec
fn clone(&self) -> GatewaySpec
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 GatewaySpec
impl Debug for GatewaySpec
Source§impl Default for GatewaySpec
impl Default for GatewaySpec
Source§fn default() -> GatewaySpec
fn default() -> GatewaySpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatewaySpec
impl<'de> Deserialize<'de> for GatewaySpec
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
Auto Trait Implementations§
impl Freeze for GatewaySpec
impl RefUnwindSafe for GatewaySpec
impl Send for GatewaySpec
impl Sync for GatewaySpec
impl Unpin for GatewaySpec
impl UnwindSafe for GatewaySpec
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