Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
(name string)
| 7245 | // return value indicates that this field was not set, or was not defined in the |
| 7246 | // schema. |
| 7247 | func (m *DecisionMutation) Field(name string) (ent.Value, bool) { |
| 7248 | switch name { |
| 7249 | case decision.FieldCreatedAt: |
| 7250 | return m.CreatedAt() |
| 7251 | case decision.FieldUpdatedAt: |
| 7252 | return m.UpdatedAt() |
| 7253 | case decision.FieldUntil: |
| 7254 | return m.Until() |
| 7255 | case decision.FieldScenario: |
| 7256 | return m.Scenario() |
| 7257 | case decision.FieldType: |
| 7258 | return m.GetType() |
| 7259 | case decision.FieldStartIP: |
| 7260 | return m.StartIP() |
| 7261 | case decision.FieldEndIP: |
| 7262 | return m.EndIP() |
| 7263 | case decision.FieldStartSuffix: |
| 7264 | return m.StartSuffix() |
| 7265 | case decision.FieldEndSuffix: |
| 7266 | return m.EndSuffix() |
| 7267 | case decision.FieldIPSize: |
| 7268 | return m.IPSize() |
| 7269 | case decision.FieldScope: |
| 7270 | return m.Scope() |
| 7271 | case decision.FieldValue: |
| 7272 | return m.Value() |
| 7273 | case decision.FieldOrigin: |
| 7274 | return m.Origin() |
| 7275 | case decision.FieldSimulated: |
| 7276 | return m.Simulated() |
| 7277 | case decision.FieldUUID: |
| 7278 | return m.UUID() |
| 7279 | case decision.FieldAlertDecisions: |
| 7280 | return m.AlertDecisions() |
| 7281 | } |
| 7282 | return nil, false |
| 7283 | } |
| 7284 | |
| 7285 | // OldField returns the old value of the field from the database. An error is |
| 7286 | // returned if the mutation operation is not UpdateOne, or the query to the |
nothing calls this directly
no test coverage detected