code: def get(self, key, default=None, msg_if_none=None):
          
          out = getattr(self, key, default)
  
          if (out is None) and (msg_if_none is not None):
              raise ValueError(msg_if_none)
  
          return out
docs: A dict-like get() for Struct attributes.