From 0b34afd23a9309002e585ecd725bab780a363cce Mon Sep 17 00:00:00 2001 From: JasterV <49537445+JasterV@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:40:43 +0200 Subject: [PATCH] Update slides --- docs/learning_grpc.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/learning_grpc.md b/docs/learning_grpc.md index 78de9cf..e02a7b7 100644 --- a/docs/learning_grpc.md +++ b/docs/learning_grpc.md @@ -503,6 +503,10 @@ pub enum CustomerDeclineRenewalReason { ``` +note: + +- Most fields are generated as Option due to the backward/forward compatibility nature of Protobuf + --- ## Generated types @@ -662,7 +666,9 @@ let _response = client.generate_contract(request).await?; note: -What if we wanted to add those headers for every request? Now we talk about interceptors +- We use the Metadata feature to set authorization headers to the request +- The ClientStub exposes the same API we defined in our protobuf service definition +- It handles all the packing-unpacking as well as the network ---