Struct tencent_scf::Context[][src]

pub struct Context {
    pub memory_limit_in_mb: usize,
    pub time_limit_in_ms: usize,
    pub request_id: String,
    pub namespace: String,
    pub function_name: String,
    pub function_version: String,
    pub region: String,
    pub appid: String,
    pub uin: String,
}

The context of the invocation, assembled from environment variables and invocation headers.

The concrete description of each field can be found at Custom Runtime API and Built-in Environment Variables.

Fields

memory_limit_in_mb: usize

from header memory_limit_in_mb

time_limit_in_ms: usize

from header time_limit_in_ms

request_id: String

from header request_id

namespace: String

from enviroment variable SCF_NAMESPACE

function_name: String

from enviroment variables SCF_FUNCTIONNAME

function_version: String

from enviroment variable SCF_FUNCTIONVERSION

region: String

from enviroment variable TENCENTCLOUD_REGION

appid: String

from enviroment variable TENCENTCLOUD_APPID

uin: String

from enviroment variable TENCENTCLOUD_UIN

Trait Implementations

impl Clone for Context[src]

impl Debug for Context[src]

impl Eq for Context[src]

impl PartialEq<Context> for Context[src]

impl StructuralEq for Context[src]

impl StructuralPartialEq for Context[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.