Struct rdftk_iri::Scheme[][src]

pub struct Scheme(_);
Expand description

Provides the Scheme component of an IRI as well as a set of known schemes.

The scheme for an IRI (URI, or URL) determines the syntax and meaning of the following components. It is a single string value.

Example

Any valid scheme string can be parsed into a Scheme instance.

use rdftk_iri::Scheme;
use std::str::FromStr;

let http_scheme = Scheme::from_str("http");

A number of well-known schemes are also provided as associated functions on the Scheme implementation for convenience.

use rdftk_iri::Scheme;

let http_scheme = Scheme::http();

Implementations

Known Scheme for Diameter Protocol, RFC 3588,6733

Known Scheme for Diameter Protocol, RFC 3588,6733

Known Scheme for product information, RFC 6694

Known Scheme for Application Configuration Access Protocol, RFC 2244

Known Scheme for identifying user account, RFC 7565

Known Scheme for binary data access in browsers (http://www.w3.org/TR/FileAPI/#url)

Known Scheme for Calendar Access Protocol, RFC 4324

Known Scheme for referencing individual parts of an SMTP/MIME message, RFC 2111,2392

Known Scheme for Constrained Application Protocol, RFC 7252

Known Scheme for Constrained Application Protocol, RFC 7252

Known Scheme for TV-Anytime Content Reference Identifier, RFC 4078

Known Scheme for inclusion of small data items inline, RFC 2397

Known Scheme for HTTP Extensions for Distributed Authoring (WebDAV), RFC 2518,4918

Known Scheme for Dictionary Service Protocol, RFC 2229

Known Scheme for Domain Name System, RFC 4501

Known Scheme for examples, RFC 7595

Known Scheme for addressing files on local or network file systems, RFC 1738,3986

Known Scheme for File Transfer Protocol, RFC 1738

Known Scheme for Geographic Locations, RFC 5870“

Known Scheme for Common Name Resolution Protocol, RFC 3368

Known Scheme for Gopher Protocol, RFC 4266

Known Scheme for HTTP resources, RFC 2817,7230

Known Scheme for HTTP resources secured using SSL/TLS, RFC 2817,7230

Known Scheme for Inter-Asterisk eXchange protocol, RFC 5456

Known Scheme for Internet Content Adaptation Protocol, RFC 3507

Known Scheme for Instant Messaging Protocol, RFC 3860

Known Scheme for accessing e-mail resources through IMAP, RFC 2192,5092

Known Scheme for Information Assets with Identifiers in Public Namespaces, RFC 4452

Known Scheme for Internet Printing Protocol, RFC 3510

Known Scheme for Internet Printing Protocol over HTTPS, RFC 7472

Known Scheme for Internet Registry Information Service, RFC 3981

Known Scheme for Internet Registry Information Service, RFC 3983

Known Scheme for Internet Registry Information Service, RFC 4992

Known Scheme for Internet Registry Information Service, RFC 4992

Known Scheme for Internet Registry Information Service, RFC 4993

Known Scheme for LDAP directory request, RFC 2255,4516

Known Scheme for SMTP e-mail addresses and default content, RFC 6068

Known Scheme for referencing SMTP/MIME messages, or parts of messages, RFC 2111,2392

Known Scheme for Message Session Relay Protocol, RFC 4975

Known Scheme for Message Session Relay Protocol, RFC 4975

Known Scheme for Message Tracking Query Protocol, RFC 3887

Known Scheme for Mailbox Update Protocol, RFC 3656

Known Scheme for (Usenet) newsgroups and postings, RFC 1738,5538

Known Scheme for Network File System resources, RFC 2224

Known Scheme for Named Information, RFC 6920

Known Scheme for Named Information for Humans, RFC 6920

Known Scheme for Usenet NNTP, RFC 1738,5538

Known Scheme for WebDAV lock token, RFC 2518,4918

Known Scheme for PKCS #11, RFC 7512

Known Scheme for Accessing mailbox through POP3, RFC 2358

Known Scheme for Used in Common Profile for Presence (CPP) to identify presence, RFC 3859

Known Scheme for REsource LOcation And Discovery Protocol, RFC 6940

Known Scheme for Real Time Streaming Protocol, RFC 2326

Known Scheme for Used in Service Location Protocol, RFC 2609

Known Scheme for Media Resource Control Protocol, RFC 4463,6787

Known Scheme for Secure HTTP, RFC 2660

Known Scheme for ManageSieve protocol, RFC 5804

Known Scheme for Used with Session Initiation Protocol (SIP), RFC 2543,3969,3261

Known Scheme for Secure equivalent of SIP, RFC 3969,3261

Known Scheme for Interact with SMS capable devices for messaging, RFC 5724

Known Scheme for Simple Network Management Protocol, RFC 4088

Known Scheme for SOAP binding to BEEP, RFC 3288,4227

Known Scheme for SOAP binding to BEEP, RFC 3288,4227

Known Scheme for ion Traversal Utilities for NAT (STUN), RFC 7064

Known Scheme for ion Traversal Utilities for NAT (STUN), RFC 7064

Known Scheme for The Tag URI, RFC 4151

Known Scheme for Used for telephone numbers, RFC 5341,3966,2806

Known Scheme for Used with telnet, RFC 1738,4248

Known Scheme for Trivial File Transfer Protocol, RFC 3627

Known Scheme for multipart/related relative reference resolution, RFC 2557

Known Scheme for Interactive 3270 emulation sessions, RFC 6270

Known Scheme for Transaction Internet Protocol, RFC 2371

Known Scheme for Traversal Using Relays around NAT (TURN), RFC 7065

Known Scheme for Traversal Using Relays around NAT (TURN), RFC 7065

Known Scheme for TV Broadcasts, RFC 2838

Known Scheme for Uniform Resource Names, RFC 2141

Known Scheme for Versatile Multimedia Interface, RFC 2122

Known Scheme for Virtual Network Computing, RFC 7869

Known Scheme for WebSocket protocol, RFC 6455

Known Scheme for WebSocket protocol, RFC 6455

Known Scheme for Centralized Conferencing (XCON) over SIP, RFC 6501

Known Scheme for Centralized Conferencing (XCON) over SIP, RFC 6501

Known Scheme for XML-RPC in BEEP, RFC 3529

Known Scheme for XML-RPC in BEEP, RFC 3529

Known Scheme for Extensible Messaging and Presence Protocol (XMPP), RFC 4622,5122

Known Scheme for Z39.50 Retrieval, RFC 2056

Known Scheme for Z39.50 Session, RFC 2056

Return the string value of this scheme.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Return a normalized version of self. The default for normalization is to do nothing and return self unchanged. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Return true if the string is a valid representation of Self, else false.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.