mirror of https://github.com/fafhrd91/actix-net
fix todo docs
This commit is contained in:
parent
8ed0b64f67
commit
e629b0275e
|
@ -4,7 +4,7 @@
|
||||||
* Fix segment interpolation leaving `Path` in unintended state after matching. [#368]
|
* Fix segment interpolation leaving `Path` in unintended state after matching. [#368]
|
||||||
* Path tail pattern now works as expected after a dynamic segment (e.g. `/user/{uid}/*`). [#366]
|
* Path tail pattern now works as expected after a dynamic segment (e.g. `/user/{uid}/*`). [#366]
|
||||||
* Fixed a bug where, in multi-patterns, static patterns are interpreted as regex. [#366]
|
* Fixed a bug where, in multi-patterns, static patterns are interpreted as regex. [#366]
|
||||||
* Rename `Path::{len => segment_count}` to be more accurate. [#370]
|
* Rename `Path::{len => segment_count}` to be more descriptive of it's purpose. [#370]
|
||||||
|
|
||||||
[#368]: https://github.com/actix/actix-net/pull/368
|
[#368]: https://github.com/actix/actix-net/pull/368
|
||||||
[#366]: https://github.com/actix/actix-net/pull/366
|
[#366]: https://github.com/actix/actix-net/pull/366
|
||||||
|
|
|
@ -25,17 +25,19 @@ const REGEX_FLAGS: &str = "(?s-m)";
|
||||||
pub struct ResourceDef {
|
pub struct ResourceDef {
|
||||||
id: u16,
|
id: u16,
|
||||||
|
|
||||||
/// Stores
|
/// Pattern type.
|
||||||
pat_type: PatternType,
|
pat_type: PatternType,
|
||||||
|
|
||||||
/// Optional name of resource definition.
|
/// Optional name of resource definition. Defaults to "".
|
||||||
name: String,
|
name: String,
|
||||||
|
|
||||||
/// Pattern that generated the resource definition.
|
/// Pattern that generated the resource definition.
|
||||||
// TODO: Sort of, in dynamic set pattern type it is blank, consider change.
|
// TODO: Sort of, in dynamic set pattern type it is blank, consider change to option.
|
||||||
pattern: String,
|
pattern: String,
|
||||||
|
|
||||||
|
/// List of elements that compose the pattern, in order.
|
||||||
///
|
///
|
||||||
|
/// `None` with pattern type is DynamicSet.
|
||||||
elements: Option<Vec<PatternElement>>,
|
elements: Option<Vec<PatternElement>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue