AnnouncementCreateData
public struct AnnouncementCreateData : Content
extension AnnouncementCreateData: RCFValidatable
structs in this file should only be used by Admin APIs, that is: API calls that require administrator access. For admins to create and edit Annoucements.
-
The text of the announcement
Declaration
Swift
var text: String
-
How long to display the announcement to users. User-level API route methods will only return this Announcement until this time. The given Date is interpreted as a floating time in the ship’s Port timezone.
Declaration
Swift
var displayUntil: Date
-
Declaration
Swift
func runValidations(using decoder: ValidatingDecoder) throws