Struct NetworkConfiguration

Source
pub struct NetworkConfiguration {
Show 23 fields pub auto_discovery: Option<bool>, pub base_url: Option<String>, pub certificate_password: Option<String>, pub certificate_path: Option<String>, pub enable_https: Option<bool>, pub enable_i_pv4: Option<bool>, pub enable_i_pv6: Option<bool>, pub enable_published_server_uri_by_request: Option<bool>, pub enable_remote_access: Option<bool>, pub enable_u_pn_p: Option<bool>, pub ignore_virtual_interfaces: Option<bool>, pub internal_http_port: Option<i32>, pub internal_https_port: Option<i32>, pub is_remote_ip_filter_blacklist: Option<bool>, pub known_proxies: Vec<String>, pub local_network_addresses: Vec<String>, pub local_network_subnets: Vec<String>, pub public_http_port: Option<i32>, pub public_https_port: Option<i32>, pub published_server_uri_by_subnet: Vec<String>, pub remote_ip_filter: Vec<String>, pub require_https: Option<bool>, pub virtual_interface_names: Vec<String>,
}
Expand description

Defines the MediaBrowser.Common.Net.NetworkConfiguration.

JSON schema
{
 "description": "Defines the
MediaBrowser.Common.Net.NetworkConfiguration.",
 "type": "object",
 "properties": {
   "AutoDiscovery": {
     "description": "Gets or sets a value indicating whether
Autodiscovery is enabled.",
     "type": "boolean"
   },
   "BaseUrl": {
     "description": "Gets or sets a value used to specify the URL prefix
that your Jellyfin instance can be accessed at.",
     "type": "string"
   },
   "CertificatePassword": {
     "description": "Gets or sets the password required to access the
X.509 certificate data in the file specified by
MediaBrowser.Common.Net.NetworkConfiguration.CertificatePath.",
     "type": "string"
   },
   "CertificatePath": {
     "description": "Gets or sets the filesystem path of an X.509
certificate to use for SSL.",
     "type": "string"
   },
   "EnableHttps": {
     "description": "Gets or sets a value indicating whether to use
HTTPS.",
     "type": "boolean"
   },
   "EnableIPv4": {
     "description": "Gets or sets a value indicating whether IPv6 is
enabled.",
     "type": "boolean"
   },
   "EnableIPv6": {
     "description": "Gets or sets a value indicating whether IPv6 is
enabled.",
     "type": "boolean"
   },
   "EnablePublishedServerUriByRequest": {
     "description": "Gets or sets a value indicating whether the
published server uri is based on information in HTTP requests.",
     "type": "boolean"
   },
   "EnableRemoteAccess": {
     "description": "Gets or sets a value indicating whether access from
outside of the LAN is permitted.",
     "type": "boolean"
   },
   "EnableUPnP": {
     "description": "Gets or sets a value indicating whether to enable
automatic port forwarding.",
     "type": "boolean"
   },
   "IgnoreVirtualInterfaces": {
     "description": "Gets or sets a value indicating whether address
names that match
MediaBrowser.Common.Net.NetworkConfiguration.VirtualInterfaceNames
should be ignored for the purposes of binding.",
     "type": "boolean"
   },
   "InternalHttpPort": {
     "description": "Gets or sets the internal HTTP server port.",
     "type": "integer",
     "format": "int32"
   },
   "InternalHttpsPort": {
     "description": "Gets or sets the internal HTTPS server port.",
     "type": "integer",
     "format": "int32"
   },
   "IsRemoteIPFilterBlacklist": {
     "description": "Gets or sets a value indicating whether <seealso
cref=\"P:MediaBrowser.Common.Net.NetworkConfiguration.RemoteIPFilter\"
/> contains a blacklist or a whitelist. Default is a whitelist.",
     "type": "boolean"
   },
   "KnownProxies": {
     "description": "Gets or sets the known proxies.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "LocalNetworkAddresses": {
     "description": "Gets or sets the interface addresses which Jellyfin
will bind to. If empty, all interfaces will be used.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "LocalNetworkSubnets": {
     "description": "Gets or sets the subnets that are deemed to make up
the LAN.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "PublicHttpPort": {
     "description": "Gets or sets the public HTTP port.",
     "type": "integer",
     "format": "int32"
   },
   "PublicHttpsPort": {
     "description": "Gets or sets the public HTTPS port.",
     "type": "integer",
     "format": "int32"
   },
   "PublishedServerUriBySubnet": {
     "description": "Gets or sets the PublishedServerUriBySubnet\r\nGets
or sets PublishedServerUri to advertise for specific subnets.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "RemoteIPFilter": {
     "description": "Gets or sets the filter for remote IP connectivity.
Used in conjunction with <seealso
cref=\"P:MediaBrowser.Common.Net.NetworkConfiguration.
IsRemoteIPFilterBlacklist\" />.",
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "RequireHttps": {
     "description": "Gets or sets a value indicating whether the server
should force connections over HTTPS.",
     "type": "boolean"
   },
   "VirtualInterfaceNames": {
     "description": "Gets or sets a value indicating the interface name
prefixes that should be ignored. The list can be comma separated and
values are case-insensitive. <seealso
cref=\"P:MediaBrowser.Common.Net.NetworkConfiguration.
IgnoreVirtualInterfaces\" />.",
     "type": "array",
     "items": {
       "type": "string"
     }
   }
 },
 "additionalProperties": false
}

Fields§

§auto_discovery: Option<bool>

Gets or sets a value indicating whether Autodiscovery is enabled.

§base_url: Option<String>

Gets or sets a value used to specify the URL prefix that your Jellyfin instance can be accessed at.

§certificate_password: Option<String>

Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Common.Net.NetworkConfiguration.CertificatePath.

§certificate_path: Option<String>

Gets or sets the filesystem path of an X.509 certificate to use for SSL.

§enable_https: Option<bool>

Gets or sets a value indicating whether to use HTTPS.

§enable_i_pv4: Option<bool>

Gets or sets a value indicating whether IPv6 is enabled.

§enable_i_pv6: Option<bool>

Gets or sets a value indicating whether IPv6 is enabled.

§enable_published_server_uri_by_request: Option<bool>

Gets or sets a value indicating whether the published server uri is based on information in HTTP requests.

§enable_remote_access: Option<bool>

Gets or sets a value indicating whether access from outside of the LAN is permitted.

§enable_u_pn_p: Option<bool>

Gets or sets a value indicating whether to enable automatic port forwarding.

§ignore_virtual_interfaces: Option<bool>

Gets or sets a value indicating whether address names that match MediaBrowser.Common.Net.NetworkConfiguration.VirtualInterfaceNames should be ignored for the purposes of binding.

§internal_http_port: Option<i32>

Gets or sets the internal HTTP server port.

§internal_https_port: Option<i32>

Gets or sets the internal HTTPS server port.

§is_remote_ip_filter_blacklist: Option<bool>

Gets or sets a value indicating whether contains a blacklist or a whitelist. Default is a whitelist.

§known_proxies: Vec<String>

Gets or sets the known proxies.

§local_network_addresses: Vec<String>

Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used.

§local_network_subnets: Vec<String>

Gets or sets the subnets that are deemed to make up the LAN.

§public_http_port: Option<i32>

Gets or sets the public HTTP port.

§public_https_port: Option<i32>

Gets or sets the public HTTPS port.

§published_server_uri_by_subnet: Vec<String>

Gets or sets the PublishedServerUriBySubnet Gets or sets PublishedServerUri to advertise for specific subnets.

§remote_ip_filter: Vec<String>

Gets or sets the filter for remote IP connectivity. Used in conjunction with .

§require_https: Option<bool>

Gets or sets a value indicating whether the server should force connections over HTTPS.

§virtual_interface_names: Vec<String>

Gets or sets a value indicating the interface name prefixes that should be ignored. The list can be comma separated and values are case-insensitive. .

Implementations§

Trait Implementations§

Source§

impl Clone for NetworkConfiguration

Source§

fn clone(&self) -> NetworkConfiguration

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NetworkConfiguration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NetworkConfiguration

Source§

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 From<&NetworkConfiguration> for NetworkConfiguration

Source§

fn from(value: &NetworkConfiguration) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkConfiguration> for NetworkConfiguration

Source§

fn from(value: NetworkConfiguration) -> Self

Converts to this type from the input type.
Source§

impl Serialize for NetworkConfiguration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<NetworkConfiguration> for NetworkConfiguration

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NetworkConfiguration) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,