You can set up two discounts for All Cart Items, one taking 100% off the Item Total, the other taking 100% off Shipping, but both having the same Discount Code, so entering that one code would apply both discounts. Just make sure you give each one a unique Discount Name, as that's how we distinguish one discount from another.