func (e *Style) ExecutedAt() *time.Ticket {
	return e.executedAt
}
ExecutedAt returns execution time of this operation.
package operation
import (
	"github.com/yorkie-team/yorkie/pkg/document/json"
	"github.com/yorkie-team/yorkie/pkg/document/time"
)
type Style struct {
	parentCreatedAt *time.Ticket
	from *json.RGATreeSplitNodePos
	to *json.RGATreeSplitNodePos
	attributes map[string]string
	executedAt *time.Ticket
}
func NewStyle(
	parentCreatedAt *time.Ticket,
	from *json.RGATreeSplitNodePos,
	to *json.RGATreeSplitNodePos,
	attributes map[string]string,
	executedAt *time.Ticket,
) *Style {
	return &Style{
		parentCreatedAt: parentCreatedAt,
		from:            from,
		to:              to,
		attributes:      attributes,
		executedAt:      executedAt,
	}
}
func (e *Style) Execute(root *json.Root) error {
	parent := root.FindByCreatedAt(e.parentCreatedAt)
	obj, ok := parent.(*json.RichText)
	if !ok {
		return ErrNotApplicableDataType
	}
	obj.SetStyle(e.from, e.to, e.attributes, e.executedAt)
	return nil
}
func (e *Style) From() *json.RGATreeSplitNodePos {
	return e.from
}
func (e *Style) To() *json.RGATreeSplitNodePos {
	return e.to
}