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§
§scheme: Option<String>§host: Option<String>§port: Option<String>§path: Option<String>§path_start_with: Option<String>§path_regex: Option<String>§mime_type: Option<String>MIME type of the data.
utd: Option<String>Uniform type descriptor of the data.
max_file_supported: Option<i64>§link_feature: Option<String>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