tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
RequestOptionsAttribute.cs
Go to the documentation of this file.
1using System;
2
4{
8 [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
9 public sealed class RequestOptionsAttribute : Attribute
10 {
14 public FieldPresence Presence { get; }
15
19 public bool PutOnly { get; set; }
20
26 {
27 Presence = presence;
28 }
29 }
30}
Indicates the FieldPresence for fields in models.
bool PutOnly
If this only applies to HTTP PUT requests with the model.
RequestOptionsAttribute(FieldPresence presence)
Initializes a new instance of the RequestOptionsAttribute class.
FieldPresence
Indicates whether a request field is Required or Ignored.