Skip to main content

build_create_request_from_view

Function build_create_request_from_view 

Source
fn build_create_request_from_view(
    view: SendView,
    overrides: CreateOverrides,
) -> Result<SendAddRequest>
Expand description

Build a create request from a full-object [SendView] (the encoded_json path).

This builds the [SendAddRequest] directly from the parsed view rather than routing through CreateInputs/build_create_request: CreateInputs is flag-shaped (a relative --deleteInDays, a file path) and cannot represent the absolute deletionDate, expirationDate, disabled, or hideEmail a full JSON object carries. The JSON object is authoritative; a CLI flag, when explicitly provided, overrides the corresponding field.