Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for logging and cancellation.
m*models.TriggerRevisionThe immutable trigger revision model containing the trigger's data.

Returns

TypeDescription
*triggerpb.TriggerDetails, errorA TriggerDetails protobuf message representing the trigger's details, or an error if unmarshaling fails.