pub async fn find_sinkhole_list(
client: &Client,
reference: &str,
include_shared: bool,
) -> Result<SinkholeList>Expand description
A sinkhole list by uuid or name: first among the caller’s own lists, then, with
include_shared, among lists other users share. A uuid that matches neither is read
directly (an Admin reaches other users’ lists that way). Rules are not included.
§Errors
Error::NotFoundif no list has that name.Error::InvalidInputif the name is ambiguous (seematch_sinkhole_list).- Any error of
SinkholeLists::listorSinkholeLists::get.
§Examples
let list = dinio_sdk::ops::find_sinkhole_list(client, "ads", false).await?;
let with_rules = client.sinkhole_lists().get(list.uuid, true).await?;