SetNillableExpires sets the "expires" field if the given value is not nil.
(t *time.Time)
| 117 | |
| 118 | // SetNillableExpires sets the "expires" field if the given value is not nil. |
| 119 | func (sc *ShareCreate) SetNillableExpires(t *time.Time) *ShareCreate { |
| 120 | if t != nil { |
| 121 | sc.SetExpires(*t) |
| 122 | } |
| 123 | return sc |
| 124 | } |
| 125 | |
| 126 | // SetRemainDownloads sets the "remain_downloads" field. |
| 127 | func (sc *ShareCreate) SetRemainDownloads(i int) *ShareCreate { |
nothing calls this directly
no test coverage detected