Check out example codes for "c++ 20 struct initialization". It will help you in understanding the concepts better.

Code Example 1

#include <iostream>
#include <filesystem>

struct hello_world {
    const char* hello;
    const char* world;
};

int main () 
{
    hello_world hw = {
        .hello = "hello, ",
        .world = "world!"
    };

    std::cout << hw.hello << hw.world << std::endl;
    return 0;
}

Learn ReactJs, React Native from akashmittal.com