def process_kwargs(self, kwargs, environment):
    super().process_kwargs(kwargs, environment)
    if ('rust_crate_type' in kwargs):
        rust_crate_type = kwargs['rust_crate_type']
        if isinstance(rust_crate_type, str):
            self.rust_crate_type = rust_crate_type
        else:
            raise InvalidArguments('Invalid rust_crate_type "{0}": must be a string.'.format(rust_crate_type))
def process_kwargs(self, kwargs, environment):
    super().process_kwargs(kwargs, environment)
    if ('rust_crate_type' in kwargs):
        rust_crate_type = kwargs['rust_crate_type']
        if isinstance(rust_crate_type, str):
            self.rust_crate_type = rust_crate_type
        else:
            raise InvalidArguments('Invalid rust_crate_type "{0}": must be a string.'.format(rust_crate_type))