pub struct CreateSquadDto {
pub name: Option<String>,
pub members: Vec<SquadMemberDto>,
pub members_overrides: Option<AssistantOverrides>,
}
Fields§
§name: Option<String>
This is the name of the squad.
members: Vec<SquadMemberDto>
This is the list of assistants that make up the squad. The call will start with the first assistant in the list.
members_overrides: Option<AssistantOverrides>
This can be used to override all the assistants’ settings and provide values for their template variables. Both membersOverrides
and members[n].assistantOverrides
can be used together. First, members[n].assistantOverrides
is applied. Then, membersOverrides
is applied as a global override.
Implementations§
Source§impl CreateSquadDto
impl CreateSquadDto
pub fn new(members: Vec<SquadMemberDto>) -> CreateSquadDto
Trait Implementations§
Source§impl Clone for CreateSquadDto
impl Clone for CreateSquadDto
Source§fn clone(&self) -> CreateSquadDto
fn clone(&self) -> CreateSquadDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateSquadDto
impl Debug for CreateSquadDto
Source§impl Default for CreateSquadDto
impl Default for CreateSquadDto
Source§fn default() -> CreateSquadDto
fn default() -> CreateSquadDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateSquadDto
impl<'de> Deserialize<'de> for CreateSquadDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateSquadDto
impl PartialEq for CreateSquadDto
Source§impl Serialize for CreateSquadDto
impl Serialize for CreateSquadDto
impl StructuralPartialEq for CreateSquadDto
Auto Trait Implementations§
impl Freeze for CreateSquadDto
impl RefUnwindSafe for CreateSquadDto
impl Send for CreateSquadDto
impl Sync for CreateSquadDto
impl Unpin for CreateSquadDto
impl UnwindSafe for CreateSquadDto
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