#[non_exhaustive]pub struct SkillUri {
pub scheme: Option<String>,
pub host: Option<String>,
pub port: Option<String>,
pub path: Option<String>,
pub path_start_with: Option<String>,
pub path_regex: Option<String>,
pub mime_type: Option<String>,
pub utd: Option<String>,
pub max_file_supported: Option<i64>,
pub link_feature: Option<String>,
}Expand description
One entry of a skill’s uris.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scheme: Option<String>scheme, e.g. https or an app-private scheme.
host: Option<String>host.
port: Option<String>port, as text even when written as a number.
path: Option<String>path: an exact path.
path_start_with: Option<String>pathStartWith: a path prefix.
path_regex: Option<String>pathRegex: a path regular expression.
mime_type: Option<String>MIME type of the data.
utd: Option<String>Uniform type descriptor of the data.
max_file_supported: Option<i64>maxFileSupported: how many files of this type the ability accepts at once.
link_feature: Option<String>linkFeature: the app-linking feature the URI serves (Login, Pay…).
Implementations§
Source§impl SkillUri
impl SkillUri
Sourcepub fn patterns(&self) -> Vec<String>
pub fn patterns(&self) -> Vec<String>
The URL patterns this entry spells, one per path form present:
scheme://host:port/path, …/prefix* for pathStartWith and
…/regex:<re> for pathRegex. A missing host prints as *, and
so does everything after a bare scheme (myapp://*). Empty
when the entry names no scheme.
Trait Implementations§
impl Eq for SkillUri
impl StructuralPartialEq for SkillUri
Auto Trait Implementations§
impl Forget for SkillUri
impl Freeze for SkillUri
impl Move for SkillUri
impl RefUnwindSafe for SkillUri
impl Send for SkillUri
impl Sync for SkillUri
impl Unpin for SkillUri
impl UnsafeUnpin for SkillUri
impl UnwindSafe for SkillUri
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more