How to assign UID to struct value

Solved with the help of @Clery