1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// SPDX-FileCopyrightText: 2025 Robin Vobruba <hoijui.quaero@gmail.com>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
use ;
use HeaderValue;
use encode;
// use url::form_urlencoded;
pub type SpdxLicenseExpression = ;
pub const LICENSE_UNKNOWN: SpdxLicenseExpression = Borrowed;
pub const LICENSE_PROPRIETARY: SpdxLicenseExpression =
Borrowed;
// __unknown_license__: License = License(
// _id="LicenseRef-NOASSERTION",
// name="No license statement is present; This equals legally to All Rights Reserved (== proprietary)",
// reference_url="https://en.wikipedia.org/wiki/All_rights_reserved",
// type_=LicenseType.UNKNOWN,
// is_spdx=False,
// is_osi_approved=False,
// is_fsf_libre=False,
// is_blocked=True,
// )
// __proprietary_license__: License = License(
// _id="LicenseRef-AllRightsReserved",
// name="All Rights Reserved (== proprietary)",
// reference_url="https://en.wikipedia.org/wiki/All_rights_reserved",
// type_=LicenseType.PROPRIETARY,
// is_spdx=False,
// is_osi_approved=False,
// is_fsf_libre=False,
// is_blocked=True,
// )
/// Returns the quoting character,
/// if the supplied string starts with one,
/// else returns `None`.
///
/// ```
/// # use okh_scraper::tools::url_encode;
/// assert_eq!(url_encode(r#"Hello World"#), "Hello%20World");
/// ```