TriggerRevisionModelToTriggerDetails
Converts an immutable revision row to the full proto response.
def TriggerRevisionModelToTriggerDetails(
ctx: context.Context,
m: *models.TriggerRevision
) - > *triggerpb.TriggerDetails, error
Converts an immutable revision row to the full proto response.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for logging and cancellation. |
| m | *models.TriggerRevision | The immutable trigger revision model containing the trigger's data. |
Returns
| Type | Description |
|---|---|
*triggerpb.TriggerDetails, error | A TriggerDetails protobuf message representing the trigger's details, or an error if unmarshaling fails. |