Field::attr_str
pub fn attr_str(string attr, string key, string fallback) -> string Import
Source: use macro::{Field}; compiler/src/prelude/macro.hy #[attr(key = "value")] on this field, or fallback.
Called on a Field value as value.attr_str(…).
Parameters#
| Name | Type |
|---|---|
attr | string |
key | string |
fallback | string |
Returns#
string
See also#
Field: A class field, or a field of a record enum variant.Field::has_attr: True when the field carries#[name(...)].