GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
()
| 24 | |
| 25 | // GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise. |
| 26 | func (a *AbuseRateLimitError) GetRetryAfter() time.Duration { |
| 27 | if a == nil || a.RetryAfter == nil { |
| 28 | return 0 |
| 29 | } |
| 30 | return *a.RetryAfter |
| 31 | } |
| 32 | |
| 33 | // GetAssignment returns the Assignment field. |
| 34 | func (a *AcceptedAssignment) GetAssignment() *ClassroomAssignment { |
no outgoing calls