pub struct CreateAgentActionBuilder {
pub org_id: Option<String>,
pub public_key: Option<String>,
pub active: Option<bool>,
pub roles: Vec<String>,
pub metadata: Vec<KeyValueEntry>,
}Expand description
Builder to create a “create agent” action
Fields§
§org_id: Option<String>§public_key: Option<String>§active: Option<bool>§roles: Vec<String>§metadata: Vec<KeyValueEntry>Implementations§
Source§impl CreateAgentActionBuilder
impl CreateAgentActionBuilder
pub fn new() -> Self
pub fn with_org_id(self, org_id: String) -> CreateAgentActionBuilder
pub fn with_public_key(self, public_key: String) -> CreateAgentActionBuilder
pub fn with_active(self, active: bool) -> CreateAgentActionBuilder
pub fn with_roles(self, roles: Vec<String>) -> CreateAgentActionBuilder
pub fn with_metadata( self, metadata: Vec<KeyValueEntry>, ) -> CreateAgentActionBuilder
pub fn build(self) -> Result<CreateAgentAction, CreateAgentActionBuildError>
Trait Implementations§
Source§impl Clone for CreateAgentActionBuilder
impl Clone for CreateAgentActionBuilder
Source§fn clone(&self) -> CreateAgentActionBuilder
fn clone(&self) -> CreateAgentActionBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateAgentActionBuilder
impl Default for CreateAgentActionBuilder
Source§fn default() -> CreateAgentActionBuilder
fn default() -> CreateAgentActionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateAgentActionBuilder
impl RefUnwindSafe for CreateAgentActionBuilder
impl Send for CreateAgentActionBuilder
impl Sync for CreateAgentActionBuilder
impl Unpin for CreateAgentActionBuilder
impl UnsafeUnpin for CreateAgentActionBuilder
impl UnwindSafe for CreateAgentActionBuilder
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