pub struct SetBlockedURLsBuilder { /* private fields */ }Expand description
Builder for SetBlockedURLs.
Implementations§
Source§impl SetBlockedURLsBuilder
impl SetBlockedURLsBuilder
Sourcepub fn url_patterns<VALUE: Into<Vec<BlockPattern>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn url_patterns<VALUE: Into<Vec<BlockPattern>>>( &mut self, value: VALUE, ) -> &mut Self
Patterns to match in the order in which they are given. These patterns
also take precedence over any wildcard patterns defined in urls.
Sourcepub fn urls<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn urls<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
URL patterns to block. Wildcards (‘*’) are allowed.
Sourcepub fn build(&self) -> Result<SetBlockedURLs, SetBlockedURLsBuilderError>
pub fn build(&self) -> Result<SetBlockedURLs, SetBlockedURLsBuilderError>
Trait Implementations§
Source§impl Clone for SetBlockedURLsBuilder
impl Clone for SetBlockedURLsBuilder
Source§fn clone(&self) -> SetBlockedURLsBuilder
fn clone(&self) -> SetBlockedURLsBuilder
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 SetBlockedURLsBuilder
impl RefUnwindSafe for SetBlockedURLsBuilder
impl Send for SetBlockedURLsBuilder
impl Sync for SetBlockedURLsBuilder
impl Unpin for SetBlockedURLsBuilder
impl UnsafeUnpin for SetBlockedURLsBuilder
impl UnwindSafe for SetBlockedURLsBuilder
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