def V2.down.status

bend-kit-migrate@0.3.0.0 · migrate.bend:144

import bend-kit-migrate@0.3.0.0/migrate.bend as Migrate
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

144def V2.down.status(s: Status, i: U32, p: Bytes.Bytes, c: U32, n: Maybe<&1, Bytes.Bytes>) -> Result<&1, &1, Error, V1>:
145  match s:
146    case Active{}:
147      V2.down.note(n, i, p, c, True{})
148    case Paused{}:
149      Fail{NotInV1{KStatus{}}}
150    case Cancelled{}:
151      V2.down.note(n, i, p, c, False{})

Uses (10)

Used by (1)