pub struct ExtractedPage {
pub url: String,
pub title: Option<String>,
}Expand description
URL抽出と同じ経路で取れたページ情報。
title はプラットフォーム側が信頼できる出所から取れたときだけ Some。
None は「取得手段が無かった」であって「タイトルが空」ではない
(空文字のタイトルも None に正規化する)。呼び出し側はこのとき
ウィンドウ名など別の出所に当たる。
Fields§
§url: String§title: Option<String>Trait Implementations§
Source§impl Clone for ExtractedPage
impl Clone for ExtractedPage
Source§fn clone(&self) -> ExtractedPage
fn clone(&self) -> ExtractedPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtractedPage
impl Debug for ExtractedPage
impl Eq for ExtractedPage
Source§impl PartialEq for ExtractedPage
impl PartialEq for ExtractedPage
impl StructuralPartialEq for ExtractedPage
Auto Trait Implementations§
impl Freeze for ExtractedPage
impl RefUnwindSafe for ExtractedPage
impl Send for ExtractedPage
impl Sync for ExtractedPage
impl Unpin for ExtractedPage
impl UnsafeUnpin for ExtractedPage
impl UnwindSafe for ExtractedPage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.