method DynHandle.get
The current value: the most specific override that applies to this node and to the tenant of the caller, else the declared default.
Example:
dynamic Limits {
rps: u32 = 100
title: str = "shop"
}
fn main() io {
let l = Limits.get()
print("{l.rps.get()}")
l.rps.set(250)!
print("{l.rps.get()}")
}Output
100 250
pub(api) fn get() -> T where T: SerializableComplexity. O(1) plus reading the local copy of the value.
Since. 1.0.0-beta
Returns
T where T: Serializable
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/dynconf.oxl:463