pub struct ExternalTool {Show 22 fields
pub id: u64,
pub name: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub domain: Option<String>,
pub consumer_key: Option<String>,
pub course_id: Option<u64>,
pub account_id: Option<u64>,
pub workflow_state: Option<String>,
pub privacy_level: Option<String>,
pub custom_fields: Option<Value>,
pub course_navigation: Option<Value>,
pub account_navigation: Option<Value>,
pub user_navigation: Option<Value>,
pub editor_button: Option<Value>,
pub resource_selection: Option<Value>,
pub homework_submission: Option<Value>,
pub selection_width: Option<u64>,
pub selection_height: Option<u64>,
pub icon_url: Option<String>,
pub is_rce_favorite: Option<bool>,
pub is_top_nav_favorite: Option<bool>,
/* private fields */
}Expand description
A Canvas external (LTI) tool.
Fields§
§id: u64§name: Option<String>§description: Option<String>§url: Option<String>§domain: Option<String>§consumer_key: Option<String>§course_id: Option<u64>§account_id: Option<u64>§workflow_state: Option<String>§privacy_level: Option<String>§custom_fields: Option<Value>§resource_selection: Option<Value>§homework_submission: Option<Value>§selection_width: Option<u64>§selection_height: Option<u64>§icon_url: Option<String>§is_rce_favorite: Option<bool>Implementations§
Source§impl ExternalTool
impl ExternalTool
Sourcepub async fn edit(&self, params: ExternalToolParams) -> Result<ExternalTool>
pub async fn edit(&self, params: ExternalToolParams) -> Result<ExternalTool>
Update this external tool.
§Canvas API
PUT /api/v1/courses/:course_id/external_tools/:id
PUT /api/v1/accounts/:account_id/external_tools/:id
Sourcepub async fn delete(&self) -> Result<ExternalTool>
pub async fn delete(&self) -> Result<ExternalTool>
Delete this external tool.
§Canvas API
DELETE /api/v1/courses/:course_id/external_tools/:id
DELETE /api/v1/accounts/:account_id/external_tools/:id
Trait Implementations§
Source§impl Clone for ExternalTool
impl Clone for ExternalTool
Source§fn clone(&self) -> ExternalTool
fn clone(&self) -> ExternalTool
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 Debug for ExternalTool
impl Debug for ExternalTool
Source§impl<'de> Deserialize<'de> for ExternalTool
impl<'de> Deserialize<'de> for ExternalTool
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
Auto Trait Implementations§
impl Freeze for ExternalTool
impl !RefUnwindSafe for ExternalTool
impl Send for ExternalTool
impl Sync for ExternalTool
impl Unpin for ExternalTool
impl UnsafeUnpin for ExternalTool
impl !UnwindSafe for ExternalTool
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