pub enum PropertySourceType {
CommandLine,
SystemEnvironment,
SystemProperties,
ApplicationProperties,
ApplicationYaml,
ApplicationToml,
External,
Custom,
}Expand description
Property source type 属性源类型
Equivalent to Spring’s PropertySource types.
等价于Spring的PropertySource类型。
Variants§
CommandLine
Command line arguments 命令行参数
SystemEnvironment
System environment 系统环境
SystemProperties
System properties 系统属性
ApplicationProperties
Application properties 应用属性
ApplicationYaml
Application YAML 应用YAML
ApplicationToml
Application TOML 应用TOML
External
External configuration 外部配置
Custom
Custom source 自定义源
Implementations§
Source§impl PropertySourceType
impl PropertySourceType
Sourcepub fn default_order(&self) -> u32
pub fn default_order(&self) -> u32
Get the default order for this type (lower = higher priority) 获取此类型的默认顺序(越小优先级越高)
Trait Implementations§
Source§impl Clone for PropertySourceType
impl Clone for PropertySourceType
Source§fn clone(&self) -> PropertySourceType
fn clone(&self) -> PropertySourceType
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 moreimpl Copy for PropertySourceType
Source§impl Debug for PropertySourceType
impl Debug for PropertySourceType
impl Eq for PropertySourceType
Source§impl PartialEq for PropertySourceType
impl PartialEq for PropertySourceType
Source§fn eq(&self, other: &PropertySourceType) -> bool
fn eq(&self, other: &PropertySourceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PropertySourceType
Auto Trait Implementations§
impl Freeze for PropertySourceType
impl RefUnwindSafe for PropertySourceType
impl Send for PropertySourceType
impl Sync for PropertySourceType
impl Unpin for PropertySourceType
impl UnsafeUnpin for PropertySourceType
impl UnwindSafe for PropertySourceType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.