How does the primary structure of a protein dictate its structure and function?
You have asked about the primary structure in determining function. If you consider an enzyme as an example, then the function depends on its “active site”. This site is created by the secondary structure of the protein in its creation. The enzyme substrate fits into this active site and the reaction takes place. If an inhibitor is present it competes for this active site and blocks the substrate entering. If the protein is heated above 60 C then the active site is distorted and the enzyme is degraded (destroyed). I hope you find this more constructive than the previous 2 answers.