All of the following structures are contained within the spermatic cord EXCEPT:

inguinal canal
nerves and lymphatics
pampiniform plexus of veins
testicular artery
ductus (vas) deferens