pub struct HttpResource { /* private fields */ }Implementations§
Source§impl HttpResource
impl HttpResource
Source§impl HttpResource
impl HttpResource
Trait Implementations§
Source§impl Clone for HttpResource
impl Clone for HttpResource
Source§fn clone(&self) -> HttpResource
fn clone(&self) -> HttpResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpResource
impl Debug for HttpResource
Source§impl<'de> Deserialize<'de> for HttpResource
impl<'de> Deserialize<'de> for HttpResource
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
Source§impl EnvEvaluable<HttpResource> for HttpResource
impl EnvEvaluable<HttpResource> for HttpResource
fn env_eval(self, dict: &EnvDict) -> HttpResource
impl Eq for HttpResource
Source§impl From<HttpResource> for Address
impl From<HttpResource> for Address
Source§fn from(value: HttpResource) -> Self
fn from(value: HttpResource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HttpResource
impl PartialEq for HttpResource
Source§impl Serialize for HttpResource
impl Serialize for HttpResource
Source§impl Validate for HttpResource
impl Validate for HttpResource
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
验证地址配置
Source§fn is_accessible(&self) -> bool
fn is_accessible(&self) -> bool
验证地址是否可访问
Auto Trait Implementations§
impl Freeze for HttpResource
impl RefUnwindSafe for HttpResource
impl Send for HttpResource
impl Sync for HttpResource
impl Unpin for HttpResource
impl UnsafeUnpin for HttpResource
impl UnwindSafe for HttpResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_conf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> ConfigLifecycle for T
impl<T> ConfigLifecycle for T
Source§fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
fn load(path: &str) -> Result<T, StructError<ConfIOReason>>where
T: Sized,
强制加载配置文件
Source§fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
fn init(&self, path: &str) -> Result<(), StructError<ConfIOReason>>where
T: Sized,
初始化配置文件
Source§fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
fn safe_clean(path: &str) -> Result<(), StructError<ConfIOReason>>
安全清理配置文件
fn save(&self, path: &str) -> Result<(), StructError<ConfIOReason>>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> EnvTomlLoad<T> for Twhere
T: DeserializeOwned,
impl<T> EnvTomlLoad<T> for Twhere
T: DeserializeOwned,
fn env_load_toml( path: &Path, dict: &ValueDict, ) -> Result<T, StructError<ConfIOReason>>
fn env_parse_toml( content: &str, dict: &ValueDict, ) -> Result<T, StructError<ConfIOReason>>
Source§impl<T> EnvYamlLoad<T> for Twhere
T: DeserializeOwned,
impl<T> EnvYamlLoad<T> for Twhere
T: DeserializeOwned,
fn env_load_yaml( path: &Path, dict: &ValueDict, ) -> Result<T, StructError<ConfIOReason>>
fn env_parse_yaml( content: &str, dict: &ValueDict, ) -> Result<T, StructError<ConfIOReason>>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.