Instance Methodsoto-core 7.4.0SotoCore
match(result:)
Matcher.swift:64func match(result: Result<Any, Error>) -> Bool
func match(result: Result<Any, Error>) -> Bool
s8SotoCore18JMESAnyPathMatcherV5match6resultSbs6ResultOyyps5Error_pG_tF
What are these?6TOTE
import SotoCore
struct JMESAnyPathMatcher<Value> where Value : CustomStringConvertible
Match whether any of the values indicated by JMESPath matches an expected value
@frozen enum Result<Success, Failure> where Failure : Error, Success : ~Copyable
A value that represents either a success or a failure, including an associated value in each case.
protocol Error : Sendable
A type representing an error value that can be thrown.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(_ path: String, expected: Value) throws