def __init__(self, s, contract):
        """
        Creates a Struct.

        :Parameters:
          s
            Dict representing the struct (from parsed IDL)
          contract
            Contract instance to associate with the Struct
        """
        self.contract = contract
        self.name = s["name"]
        self.extends = s["extends"]
        self.parent = None
        self.fields = { }
        for f in s["fields"]:
            self.fields[f["name"]] = Type(f)
def __init__ ( self , s , contract ) : self . contract = contract self . name = s [ "name" ] self . extends = s [ "extends" ] self . parent = None self . fields = { } for f in s [ "fields" ] : self . fields [ f [ "name" ] ] = Type ( f )
Creates a Struct.

        :Parameters:
          s
            Dict representing the struct (from parsed IDL)
          contract
            Contract instance to associate with the Struct