From 3c53476206482535f6b73f118e09258aeeb1d6f8 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Tue, 28 Nov 2023 09:49:50 -0800 Subject: [PATCH] Remove unused types. (#736) These types are not used anywhere. Signed-off-by: David Calavera --- lambda-runtime/src/types.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lambda-runtime/src/types.rs b/lambda-runtime/src/types.rs index 82d9b21f..8b70ce80 100644 --- a/lambda-runtime/src/types.rs +++ b/lambda-runtime/src/types.rs @@ -19,34 +19,6 @@ pub(crate) struct Diagnostic<'a> { pub(crate) error_message: &'a str, } -/// The request ID, which identifies the request that triggered the function invocation. This header -/// tracks the invocation within the Lambda control plane. The request ID is used to specify completion -/// of a given invocation. -#[derive(Debug, Clone, Eq, PartialEq)] -pub struct RequestId(pub String); - -/// The date that the function times out in Unix time milliseconds. For example, `1542409706888`. -#[derive(Debug, Clone, Eq, PartialEq)] -pub struct InvocationDeadline(pub u64); - -/// The ARN of the Lambda function, version, or alias that is specified in the invocation. -/// For instance, `arn:aws:lambda:us-east-2:123456789012:function:custom-runtime`. -#[derive(Debug, Clone, Eq, PartialEq)] -pub struct FunctionArn(pub String); - -/// The AWS X-Ray Tracing header. For more information, -/// please see [AWS' documentation](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader). -#[derive(Debug, Clone, Eq, PartialEq)] -pub struct XRayTraceId(pub String); - -/// For invocations from the AWS Mobile SDK contains data about client application and device. -#[derive(Debug, Clone, Eq, PartialEq)] -struct MobileClientContext(String); - -/// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider. -#[derive(Debug, Clone, Eq, PartialEq)] -struct MobileClientIdentity(String); - /// Client context sent by the AWS Mobile SDK. #[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] pub struct ClientContext {