pub async fn renew(
    id: &str,
    cur_expiry_date: DateTime<Utc>,
    add_period: Option<Period>,
    client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<RenewResponse>, Error>
Expand description

Extends a mark’s validity

Arguments

  • id - The ID to renew
  • cur_expriry_date - The current expiry date of the object to be renewed
  • add_period - How long to extend the validity by
  • client_sender - Reference to the tokio channel into the client