fix todo docs

This commit is contained in:
Rob Ede 2021-07-16 19:05:16 +01:00
parent 8ed0b64f67
commit e629b0275e
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,7 @@
* 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]
* 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
[#366]: https://github.com/actix/actix-net/pull/366

View File

@ -25,17 +25,19 @@ const REGEX_FLAGS: &str = "(?s-m)";
pub struct ResourceDef {
id: u16,
/// Stores
/// Pattern type.
pat_type: PatternType,
/// Optional name of resource definition.
/// Optional name of resource definition. Defaults to "".
name: String,
/// 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,
/// List of elements that compose the pattern, in order.
///
/// `None` with pattern type is DynamicSet.
elements: Option<Vec<PatternElement>>,
}