pub fn payload_for(notice: &Notice, policy: PushPolicy) -> Option<PushPayload>Expand description
The notice’s payload under policy, or None for a muted hat (kernel
spec §6; Notice’s documented rules):
- the title: the notice’s generic title under
generic_title, else its title; - the body: the notice’s
detailwhendetailsis on and it has one, withgeneric_titletoo; otherwise none undergeneric_title, else the notice’s body.