UpdateAPITokenRequest is model to contain request data for updating an API token nolint:lll
| 103 | // UpdateAPITokenRequest is model to contain request data for updating an API token |
| 104 | // nolint:lll |
| 105 | type UpdateAPITokenRequest struct { |
| 106 | Name *string `form:"name,omitempty" json:"name,omitempty" validate:"omitempty,max=100"` |
| 107 | Status TokenStatus `form:"status,omitempty" json:"status,omitempty" validate:"omitempty,valid"` |
| 108 | } |
| 109 | |
| 110 | // Valid is function to control input/output data |
| 111 | func (uatr UpdateAPITokenRequest) Valid() error { |
nothing calls this directly
no outgoing calls
no test coverage detected