pub struct TargetInfoBuilder { /* private fields */ }Available on crate feature
Target only.Implementations§
Source§impl TargetInfoBuilder
impl TargetInfoBuilder
pub fn target_id(&mut self, v: TargetId) -> &mut Self
pub fn type(&mut self, v: String) -> &mut Self
pub fn title(&mut self, v: String) -> &mut Self
pub fn url(&mut self, v: String) -> &mut Self
Sourcepub fn can_access_opener(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn can_access_opener(&mut self, v: bool) -> &mut Self
experimental only.Whether the target has access to the originating window.
Sourcepub fn opener_frame_id(&mut self, v: FrameId) -> &mut Self
Available on crate feature experimental only.
pub fn opener_frame_id(&mut self, v: FrameId) -> &mut Self
experimental only.Frame id of originating window (is only set if target has an opener).
pub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
Available on crate feature
experimental only.pub fn build(&mut self) -> Result<TargetInfo, &'static str>
Trait Implementations§
Source§impl Clone for TargetInfoBuilder
impl Clone for TargetInfoBuilder
Source§fn clone(&self) -> TargetInfoBuilder
fn clone(&self) -> TargetInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 TargetInfoBuilder
impl Debug for TargetInfoBuilder
Auto Trait Implementations§
impl Freeze for TargetInfoBuilder
impl RefUnwindSafe for TargetInfoBuilder
impl Send for TargetInfoBuilder
impl Sync for TargetInfoBuilder
impl Unpin for TargetInfoBuilder
impl UnwindSafe for TargetInfoBuilder
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