Convert AgentPubKey into AgentPubKeyB64

I have a zome function that expects an AgentPubKeyB64 as an argument which I want to test. Sweettest’s SweetCell::agent_pubkey() returns an AgentPubKey and this gives me a type mismatch. I would think the conversion would be trivial, yet I find myself stuck.

How does one convert HoloHash into HoloHashB64?

Also including EntryHashB64, HeaderHashB64, DnaHashB64 and AnyDhtHashB64 for those who might search on those terms.

Edit: Yup. It is as trivial as one would think. Just needed to step away from the screen for a bit.

AgentPubKeyB64::from(agent_key)

3 Likes