MCPcopy Create free account

hub / github.com/aws-samples/serverless-rust-demo / functions

Functions97 in github.com/aws-samples/serverless-rust-demo

↓ 15 callersFunctionresponse
HTTP Response with a JSON payload
src/entrypoints/lambda/apigateway.rs:215
↓ 12 callersMethodinto
(self)
src/store/memory.rs:80
↓ 8 callersMethodget
(&self, id: &str)
src/store/memory.rs:44
↓ 8 callersMethodput
(&self, product: &Product)
src/store/memory.rs:51
↓ 6 callersFunctionget_mock_config
Config for mocking DynamoDB
src/store/dynamodb/mod.rs:156
↓ 5 callersFunctionsetup_tracing
Setup tracing
src/utils.rs:5
↓ 4 callersMethodall
(&self, _: Option<&str>)
src/store/memory.rs:28
↓ 4 callersMethoddelete
(&self, id: &str)
src/store/memory.rs:62
↓ 4 callersFunctionget_mock_config
Config for mocking EventBridge
src/event_bus/eventbridge/mod.rs:86
↓ 4 callersFunctionget_store
()
src/utils.rs:15
↓ 3 callersMethodall
(&self, next: Option<&str>)
src/store/dynamodb/mod.rs:33
↓ 3 callersMethodas_s
(&self)
src/entrypoints/lambda/dynamodb/model.rs:149
↓ 3 callersMethodget
(&self, id: &str)
src/store/dynamodb/mod.rs:61
↓ 3 callersFunctionget_ddb_event
()
src/entrypoints/lambda/dynamodb/model.rs:196
↓ 3 callersFunctionget_random_string
(length: usize)
tests/aws_test.rs:18
↓ 3 callersMethodget_s
Return a string from a key E.g. if you run `get_s("id")` on a DynamoDB item structured like this, you will retrieve the value `"foo"`. ```json { "id
src/store/dynamodb/ext.rs:29
↓ 3 callersMethodsend_events
(&self, events: &[Self::E])
src/event_bus/eventbridge/mod.rs:46
↓ 3 callersMethodto_eventbridge
(&self, bus_name: &str)
src/event_bus/eventbridge/ext.rs:11
↓ 2 callersMethodas_n
(&self)
src/entrypoints/lambda/dynamodb/model.rs:131
↓ 1 callersMethoddelete
(&self, id: &str)
src/store/dynamodb/mod.rs:99
↓ 1 callersFunctiondelete_product
( store: &dyn store::StoreDelete, event: Request, )
src/entrypoints/lambda/apigateway.rs:10
↓ 1 callersFunctionget_event_bus
()
src/utils.rs:31
↓ 1 callersMethodget_n
Return a number from a key E.g. if you run `get_n("price")` on a DynamoDB item structured like this, you will retrieve the value `10.0`. ```json { "
src/store/dynamodb/ext.rs:45
↓ 1 callersFunctionget_product
( store: &dyn store::StoreGet, event: Request, )
src/entrypoints/lambda/apigateway.rs:59
↓ 1 callersFunctionget_products
( store: &dyn store::StoreGetAll, _event: Request, )
src/entrypoints/lambda/apigateway.rs:111
↓ 1 callersFunctionget_random_product
()
tests/aws_test.rs:25
↓ 1 callersMethodid
(&self)
src/model.rs:30
↓ 1 callersFunctionparse_events
( event_bus: &dyn EventBus<E = Event>, event: model::DynamoDBEvent, _: Context, )
src/entrypoints/lambda/dynamodb/mod.rs:12
↓ 1 callersMethodput
(&self, product: &Product)
src/store/dynamodb/mod.rs:82
↓ 1 callersFunctionput_product
( store: &dyn store::StorePut, event: Request, )
src/entrypoints/lambda/apigateway.rs:136
↓ 1 callersMethodsend_event
(&self, _: &Self::E)
src/event_bus/void.rs:18
↓ 1 callersMethodsend_event
(&self, event: &Self::E)
src/event_bus/eventbridge/mod.rs:33
↓ 1 callersFunctionsend_events
( event_bus: &dyn EventBus<E = Event>, events: &[Event], )
src/domain.rs:33
↓ 1 callersMethodsend_events
Send a batch of events
src/lib.rs:28
↓ 1 callersMethodsend_events
(&self, _: &[Self::E])
src/event_bus/void.rs:22
Methodas_bool
(&self)
src/entrypoints/lambda/dynamodb/model.rs:113
Methodas_l
(&self)
src/entrypoints/lambda/dynamodb/model.rs:119
Methodas_m
(&self)
src/entrypoints/lambda/dynamodb/model.rs:125
Methodas_ns
(&self)
src/entrypoints/lambda/dynamodb/model.rs:137
Methodas_null
(&self)
src/entrypoints/lambda/dynamodb/model.rs:143
Methodas_ss
(&self)
src/entrypoints/lambda/dynamodb/model.rs:155
Functionattributevalue_get_n
()
src/store/dynamodb/ext.rs:71
Functionattributevalue_get_n_missing
()
src/store/dynamodb/ext.rs:79
Functionattributevalue_get_s
()
src/store/dynamodb/ext.rs:55
Functionattributevalue_get_s_missing
()
src/store/dynamodb/ext.rs:63
Functiondelete_product
(store: &dyn StoreDelete, id: &str)
src/domain.rs:29
Methodfmt
(&self, f: &mut fmt::Formatter)
src/error.rs:15
Methodfrom
(_: std::num::ParseFloatError)
src/error.rs:28
Methodfrom
Convert a &Product into a DynamoDB item
src/store/dynamodb/mod.rs:114
Functionget_product
(store: &dyn StoreGet, id: &str)
src/domain.rs:17
Functionget_products
( store: &dyn StoreGetAll, next: Option<&str>, )
src/domain.rs:10
Functionget_request_builder
()
src/store/dynamodb/mod.rs:172
Functionget_request_builder
()
src/event_bus/eventbridge/mod.rs:102
Functionmain
()
src/bin/lambda/put-product.rs:7
Functionmain
()
src/bin/lambda/delete-product.rs:5
Functionmain
()
src/bin/lambda/dynamodb-streams.rs:8
Functionmain
()
src/bin/lambda/get-products.rs:7
Functionmain
()
src/bin/lambda/get-product.rs:7
Methodnew
(event_bus: Box<dyn EventBus<E = Event> + Send + Sync>)
src/lib.rs:23
Methodnew
()
src/store/memory.rs:19
Methodnew
(client: Client, table_name: String)
src/store/dynamodb/mod.rs:22
Methodnew
()
src/event_bus/void.rs:9
Methodnew
(client: Client, bus_name: String)
src/event_bus/eventbridge/mod.rs:22
Functionproduct_from_dynamodb
()
src/store/dynamodb/mod.rs:365
Functionproduct_to_dynamodb
()
src/store/dynamodb/mod.rs:378
Functionput_product
(store: &dyn StorePut, product: &Product)
src/domain.rs:21
Functiontest_all
()
src/store/dynamodb/mod.rs:209
Functiontest_all1
()
src/store/memory.rs:126
Functiontest_all2
()
src/store/memory.rs:146
Functiontest_all_empty
()
src/store/memory.rs:112
Functiontest_all_empty
()
src/store/dynamodb/mod.rs:181
Functiontest_all_next
()
src/store/dynamodb/mod.rs:242
Functiontest_delete
()
src/store/memory.rs:169
Functiontest_delete
()
src/store/dynamodb/mod.rs:272
Functiontest_delete2
()
src/store/memory.rs:190
Functiontest_deserialize
()
src/entrypoints/lambda/dynamodb/model.rs:277
Functiontest_dynamodb_into_event
()
src/entrypoints/lambda/dynamodb/model.rs:304
Functiontest_dynamodb_into_product
()
src/entrypoints/lambda/dynamodb/model.rs:341
Functiontest_flow
()
tests/aws_test.rs:36
Functiontest_get
()
src/store/memory.rs:215
Functiontest_get
()
src/store/dynamodb/mod.rs:300
Functiontest_new
()
src/store/memory.rs:101
Functiontest_put
()
src/store/memory.rs:234
Functiontest_put
()
src/store/dynamodb/mod.rs:334
Functiontest_put2
()
src/store/memory.rs:251
Functiontest_put_product_empty
()
tests/aws_test.rs:118
Functiontest_put_product_invalid_body
()
tests/aws_test.rs:135
Functiontest_put_product_with_invalid_id
()
tests/aws_test.rs:91
Functiontest_send_event
()
src/event_bus/void.rs:33
Functiontest_send_event
()
src/event_bus/eventbridge/mod.rs:111
Functiontest_send_events
()
src/event_bus/void.rs:47
Functiontest_send_events
()
src/event_bus/eventbridge/mod.rs:147
Functiontest_send_events0
()
src/event_bus/eventbridge/mod.rs:192
Functiontest_send_events15
()
src/event_bus/eventbridge/mod.rs:210
Functiontest_to_eventbridge
()
src/event_bus/eventbridge/ext.rs:32
Methodtry_from
Try to convert a DynamoDB item into a Product This could fail as the DynamoDB item might be missing some fields.
src/store/dynamodb/mod.rs:132
Methodtry_from
Try converting a DynamoDB record to an event.
src/entrypoints/lambda/dynamodb/model.rs:49