Expression
public struct Expression : Codable, CustomStringConvertible, Equatable
extension Expression: ValidExpressionArgument
Undocumented
-
The individual elements of the expression in an array
Declaration
Swift
public var elements: [Element] -
Undocumented
Declaration
Swift
public init(_ op: Expression.Operator, @ExpressionBuilder content: () -> Expression = { Expression(with: [.argument(.null)])}) -
Attempts to create an Expression from a jsonObject.
Declaration
Swift
public init?(from jsonObject: Any) -
Returns a jsonObject representation of this expression if serialization is successful, throws otherwise
Declaration
Swift
public func jsonObject() throws -> Any -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Undocumented
Declaration
Swift
public init(with elements: [Element]) -
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public init(from decoder: Decoder) throws -
An
See moreExpressionElementcan be either aop(associated with aString) OR anargument(associated with anExpressionArgument)Declaration
Swift
public indirect enum Element : Codable, CustomStringConvertible, Equatableextension Expression.Element: ValidExpressionArgument -
An
See moreExpressionArgumentis either a literal (associated with a double, string, boolean, or null value) or anotherExpressionDeclaration
Swift
public indirect enum Argument : Codable, CustomStringConvertible, Equatableextension Expression.Argument: ValidExpressionArgument -
Undocumented
See moreDeclaration
-
Undocumented
Declaration
Swift
public var expressionElements: [Expression.Element] { get }
Expression Structure Reference