pub struct Environment {
Show 30 fields pub home_url: String, pub site_url: String, pub wc_version: Option<String>, pub log_directory: String, pub log_directory_writable: bool, pub wp_version: String, pub wp_multisite: bool, pub wp_memory_limit: i64, pub wp_debug_mode: bool, pub wp_cron: bool, pub language: String, pub server_info: String, pub php_version: String, pub php_post_max_size: i64, pub php_max_execution_time: i64, pub php_max_input_vars: i64, pub curl_version: String, pub suhosin_installed: bool, pub max_upload_size: i64, pub mysql_version: String, pub default_timezone: String, pub fsockopen_or_curl_enabled: bool, pub soapclient_enabled: bool, pub domdocument_enabled: bool, pub gzip_enabled: bool, pub mbstring_enabled: bool, pub remote_post_successful: bool, pub remote_post_response: Value, pub remote_get_successful: bool, pub remote_get_response: Value,
}

Fields§

§home_url: String

Home URL.

§site_url: String

Site URL.

§wc_version: Option<String>

WooCommerce version.

§log_directory: String

Log directory.

§log_directory_writable: bool

Is log directory writable?

§wp_version: String

WordPress version.

§wp_multisite: bool

Is WordPress multisite?

§wp_memory_limit: i64

WordPress memory limit.

§wp_debug_mode: bool

Is WordPress debug mode active?

§wp_cron: bool

Are WordPress cron jobs enabled?

§language: String

WordPress language.

§server_info: String

Server info.

§php_version: String

PHP version.

§php_post_max_size: i64

PHP post max size.

§php_max_execution_time: i64

PHP max execution time.

§php_max_input_vars: i64

PHP max input vars.

§curl_version: String

cURL version.

§suhosin_installed: bool

Is SUHOSIN installed?

§max_upload_size: i64

Max upload size.

§mysql_version: String

MySQL version.

§default_timezone: String

Default timezone.

§fsockopen_or_curl_enabled: bool

Is fsockopen/cURL enabled?

§soapclient_enabled: bool

Is SoapClient class enabled?

§domdocument_enabled: bool

Is DomDocument class enabled?

§gzip_enabled: bool

Is GZip enabled?

§mbstring_enabled: bool

Is mbstring enabled?

§remote_post_successful: bool

Remote POST successful?

§remote_post_response: Value

Remote POST response.

§remote_get_successful: bool

Remote GET successful?

§remote_get_response: Value

Remote GET response.

Trait Implementations§

source§

impl Clone for Environment

source§

fn clone(&self) -> Environment

Returns a copy 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 Environment

source§

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

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

impl<'de> Deserialize<'de> for Environment

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 Serialize for Environment

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

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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>,