pub struct CTAction {
pub event_type: EventType,
pub actions: Vec<Box<dyn OfdAction>>,
}Expand description
动作基类。
所有具体动作类型的基类,包含事件类型和关联的动作列表。
对应 Java: org.ofdrw.core.action.CT_Action
Fields§
§event_type: EventType触发动作的事件类型。
对应 Java: CT_Action.eventType (EventType)
actions: Vec<Box<dyn OfdAction>>子动作列表。
一个事件可以触发多个动作。 对应 Java: CT_Action 中的子 Action 元素列表
Implementations§
Source§impl CTAction
impl CTAction
Sourcepub fn add_action(&mut self, action: Box<dyn OfdAction>)
pub fn add_action(&mut self, action: Box<dyn OfdAction>)
添加一个子动作。
对应 Java: CT_Action.add(CT_Action)
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
序列化为 OFD XML 字符串。
输出标准 OFD XML 格式的动作元素。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CTAction
impl !Send for CTAction
impl !Sync for CTAction
impl !UnwindSafe for CTAction
impl Freeze for CTAction
impl Unpin for CTAction
impl UnsafeUnpin for CTAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more