pub struct ParameterContext {
pub sqlite_busy_timeout_ms: u32,
pub sqlite_compaction_busy_timeout_ms: u32,
pub sqlite_lock_retry_max: u32,
pub sqlite_lock_retry_backoff_ms: u32,
pub codec_b64_chunk_bytes: usize,
pub text_encoding: String,
pub network_gateway_timeout_ms: u32,
}Expand description
Contract-owned parameters, resolved once at a process entry and passed inward.
Fields§
§sqlite_busy_timeout_ms: u32Wait duration for a SQLite write lock on an ordinary connection.
sqlite_compaction_busy_timeout_ms: u32Wait duration for a SQLite write lock during compaction.
sqlite_lock_retry_max: u32Maximum additional SQLite lock attempts after the initial attempt.
sqlite_lock_retry_backoff_ms: u32Base interval for bounded linear SQLite lock retry backoff.
codec_b64_chunk_bytes: usizeByte chunk size for streaming base64 framing without internal padding.
text_encoding: StringCanonical text encoding for transport and persisted textual content.
network_gateway_timeout_ms: u32Request deadline for retrieving content through the handle gateway.
Implementations§
Source§impl ParameterContext
impl ParameterContext
Sourcepub fn from_mapping(
env: &BTreeMap<String, String>,
cli: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn from_mapping( env: &BTreeMap<String, String>, cli: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
Resolve CLI over environment over contract default; any bottom is a ParameterBoundaryError.
Sourcepub fn from_layers(
env: &BTreeMap<String, String>,
cli: &BTreeMap<String, String>,
card: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn from_layers( env: &BTreeMap<String, String>, cli: &BTreeMap<String, String>, card: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
Resolve CLI over environment over verified card override (contract keys) over contract default.
Sourcepub fn with_overrides(
&self,
cli: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn with_overrides( &self, cli: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
A copy with cli (contract keys to boundary strings) applied and narrowed.
Sourcepub fn as_mapping(&self) -> BTreeMap<&'static str, ParameterValue>
pub fn as_mapping(&self) -> BTreeMap<&'static str, ParameterValue>
Contract key to resolved value.
Trait Implementations§
Source§impl Clone for ParameterContext
impl Clone for ParameterContext
Source§impl Debug for ParameterContext
impl Debug for ParameterContext
Source§impl Default for ParameterContext
impl Default for ParameterContext
impl Eq for ParameterContext
Source§impl PartialEq for ParameterContext
impl PartialEq for ParameterContext
impl StructuralPartialEq for ParameterContext
Auto Trait Implementations§
impl Forget for ParameterContext
impl Freeze for ParameterContext
impl RefUnwindSafe for ParameterContext
impl Send for ParameterContext
impl Sync for ParameterContext
impl Unpin for ParameterContext
impl UnsafeUnpin for ParameterContext
impl UnwindSafe for ParameterContext
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
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
key and return true if they are equal.