Skip to main content

opt_str

Function opt_str 

Source
pub fn opt_str(v: Option<&str>) -> &str
Expand description

Option<&str>&str(None → “”)。“” 哨兵在 audit 上下文里足以区分 不传 vs 传空(因为 Symbol / owner 等业务字段不会是空字符串)。