Struct actix_web::dev::Resource [] [src]

pub struct Resource { /* fields omitted */ }

Resource type describes an entry in resources table

Methods

impl Resource
[src]

[src]

Parse path pattern and create new Resource instance.

Panics if path pattern is wrong.

[src]

Parse path pattern and create new Resource instance.

Use prefix type instead of static.

Panics if path regex pattern is wrong.

[src]

Construct external resource

Panics if path pattern is wrong.

[src]

Parse path pattern and create new Resource instance with custom prefix

[src]

Name of the resource

[src]

Resource type

[src]

Path pattern of the resource

[src]

[src]

[src]

[src]

Build resource path.

Trait Implementations

impl Clone for Resource
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Resource
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Resource
[src]

impl Hash for Resource
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

Auto Trait Implementations

impl Send for Resource

impl Sync for Resource