You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API to use struct enums
```python
from svix.api import IngestSourceIn, CronConfig
# with fields
source_in = IngestSourceIn(
name="name",
type="cron",
config=CronConfig(content_type="asd", payload="asd", schedule="asd"),
)
# without any fields
source_in = IngestSourceIn(name="name", type="generic-webhook", config={})
# read field
if isinstance(res.config, CronConfig):
print(source_in.config.payload)
```
0 commit comments