Expose typed IDML guide settings

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 09:05:18 -05:00
1 parent fb3c910bc1
commit aae37955ad
1 file changed
+10
+10
View File
@@ -188,6 +188,16 @@ impl Guide {
pub fn liquid(&self) -> bool {
self.values.get("GuideType") == Some("Liquid")
}
/// `Locked` is true.
pub fn locked(&self) -> bool {
self.values.boolean("Locked") == Some(true)
}
/// `ItemLayer`: the identifier of the layer the guide belongs to.
pub fn item_layer(&self) -> Option<&str> {
self.values.item_layer()
}
}
/// What a page item is.