pub struct LocationListBuilder {
pub locations: Option<Vec<Location>>,
}Expand description
Builder used to create a LocationList
Fields§
§locations: Option<Vec<Location>>Implementations§
Source§impl LocationListBuilder
impl LocationListBuilder
pub fn new() -> Self
pub fn with_locations(self, locations: Vec<Location>) -> LocationListBuilder
pub fn build(self) -> Result<LocationList, LocationBuildError>
Trait Implementations§
Source§impl Clone for LocationListBuilder
impl Clone for LocationListBuilder
Source§fn clone(&self) -> LocationListBuilder
fn clone(&self) -> LocationListBuilder
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 Default for LocationListBuilder
impl Default for LocationListBuilder
Source§fn default() -> LocationListBuilder
fn default() -> LocationListBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocationListBuilder
impl RefUnwindSafe for LocationListBuilder
impl Send for LocationListBuilder
impl Sync for LocationListBuilder
impl Unpin for LocationListBuilder
impl UnwindSafe for LocationListBuilder
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