mirror of https://github.com/vapor/docs.git
Merge pull request #323 from tiferrei/patch-1
Structs with Futures are only Encodable
This commit is contained in:
commit
beae3cce94
|
|
@ -46,7 +46,7 @@ When working with Future results, simply pass the `Future` in your template cont
|
|||
Streams that carry an encodable type need to be encoded before they're usable within Leaf.
|
||||
|
||||
```swift
|
||||
struct Profile: Codable {
|
||||
struct Profile: Encodable {
|
||||
var friends: EncodableStream
|
||||
var currentUser: Future<User>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue