protocol inspect for portal struct