Skip to main content

get_by_id_for_user

Function get_by_id_for_user 

Source
pub async fn get_by_id_for_user(
    conn: &mut PgConnection,
    id: Uuid,
    user_id: Uuid,
) -> ModelResult<AgentChangeset>
Expand description

The user’s changeset. Errors with NotFound if it is someone else’s, so that callers don’t reveal other users’ changesets.