pub struct SafetyTipInfoBuilder { /* private fields */ }Expand description
Builder for SafetyTipInfo.
Implementations§
Source§impl SafetyTipInfoBuilder
impl SafetyTipInfoBuilder
Sourcepub fn safety_tip_status<VALUE: Into<SafetyTipStatus>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn safety_tip_status<VALUE: Into<SafetyTipStatus>>( &mut self, value: VALUE, ) -> &mut Self
Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.
Sourcepub fn safe_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn safe_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL the safety tip suggested (“Did you mean?”). Only filled in for lookalike matches.
Sourcepub fn build(&self) -> Result<SafetyTipInfo, SafetyTipInfoBuilderError>
pub fn build(&self) -> Result<SafetyTipInfo, SafetyTipInfoBuilderError>
Trait Implementations§
Source§impl Clone for SafetyTipInfoBuilder
impl Clone for SafetyTipInfoBuilder
Source§fn clone(&self) -> SafetyTipInfoBuilder
fn clone(&self) -> SafetyTipInfoBuilder
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 moreAuto Trait Implementations§
impl Freeze for SafetyTipInfoBuilder
impl RefUnwindSafe for SafetyTipInfoBuilder
impl Send for SafetyTipInfoBuilder
impl Sync for SafetyTipInfoBuilder
impl Unpin for SafetyTipInfoBuilder
impl UnsafeUnpin for SafetyTipInfoBuilder
impl UnwindSafe for SafetyTipInfoBuilder
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