pub struct PlaceholdersGroupResource<'a> { /* private fields */ }Expand description
client.placeholders().group()
Implementations§
Source§impl<'a> PlaceholdersGroupResource<'a>
impl<'a> PlaceholdersGroupResource<'a>
Sourcepub fn get(&self, id: impl Display) -> Result<Vec<PlaceholderMenuGroup>>
pub fn get(&self, id: impl Display) -> Result<Vec<PlaceholderMenuGroup>>
Get group placeholders
GET /placeholders/group/{id}
Returns the editor’s available group and group-membership placeholders, including this group’s custom membership fields. id must be numeric; GUIDs are not accepted by this controller. No group/member values are rendered. The handler loads the group without a separate group-visibility check. The response data is a recursive menu: groups have name and items, selectable leaves have placeholder and label, optionally menuLabel. Labels are translated. Insert the supplied expression verbatim; ordinary values use triple braces, while block helpers use double braces. The set of fields depends on configuration, so names are not a fixed enum. This object-backed tree has no meta.count envelope.
§Example
for group in client.placeholders().group().get(11)? {
println!("{}", group.name);
}