pub struct BotDetail {
pub owner: Option<BotOwner>,
pub workspace_name: Option<String>,
}
Expand description
This struct can potentially become an empty object since all its fields are optional.
Fields§
§owner: Option<BotOwner>
Information about who owns this bot.
workspace_name: Option<String>
If the owner.type is “workspace”, then workspace.name identifies the name of the workspace that owns the bot. If the owner.type is “user”, then workspace.name is null.
Implementations§
Source§impl BotDetail
impl BotDetail
Sourcepub fn owner(self, owner: BotOwner) -> Self
pub fn owner(self, owner: BotOwner) -> Self
Set the value of the owner
field.
Information about who owns this bot.
Sourcepub fn workspace_name<T>(self, workspace_name: T) -> Self
pub fn workspace_name<T>(self, workspace_name: T) -> Self
Set the value of the workspace_name
field.
If the owner.type is “workspace”, then workspace.name identifies the name of the workspace that owns the bot. If the owner.type is “user”, then workspace.name is null.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotDetail
impl<'de> Deserialize<'de> for BotDetail
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
impl Eq for BotDetail
impl StructuralPartialEq for BotDetail
Auto Trait Implementations§
impl Freeze for BotDetail
impl RefUnwindSafe for BotDetail
impl Send for BotDetail
impl Sync for BotDetail
impl Unpin for BotDetail
impl UnwindSafe for BotDetail
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