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