pub struct ContentMigration {Show 16 fields
pub id: u64,
pub migration_type: Option<String>,
pub migration_type_title: Option<String>,
pub course_id: Option<u64>,
pub account_id: Option<u64>,
pub group_id: Option<u64>,
pub user_id: Option<u64>,
pub workflow_state: Option<String>,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub pre_attachment: Option<Value>,
pub progress_url: Option<String>,
pub migration_issues_url: Option<String>,
pub migration_issues_count: Option<u64>,
pub attachment: Option<Value>,
pub settings: Option<Value>,
/* private fields */
}Expand description
A Canvas content migration job.
Fields§
§id: u64§migration_type: Option<String>§migration_type_title: Option<String>§course_id: Option<u64>§account_id: Option<u64>§group_id: Option<u64>§user_id: Option<u64>§workflow_state: Option<String>§started_at: Option<DateTime<Utc>>§finished_at: Option<DateTime<Utc>>§pre_attachment: Option<Value>§progress_url: Option<String>§migration_issues_url: Option<String>§migration_issues_count: Option<u64>§attachment: Option<Value>§settings: Option<Value>Implementations§
Source§impl ContentMigration
impl ContentMigration
Sourcepub async fn get_migration_issue(&self, issue_id: u64) -> Result<MigrationIssue>
pub async fn get_migration_issue(&self, issue_id: u64) -> Result<MigrationIssue>
Fetch a single migration issue.
§Canvas API
GET /api/v1/courses/:course_id/content_migrations/:id/migration_issues/:issue_id
Sourcepub fn get_migration_issues(&self) -> PageStream<MigrationIssue>
pub fn get_migration_issues(&self) -> PageStream<MigrationIssue>
Stream all migration issues for this migration.
§Canvas API
GET /api/v1/courses/:course_id/content_migrations/:id/migration_issues
Trait Implementations§
Source§impl Clone for ContentMigration
impl Clone for ContentMigration
Source§fn clone(&self) -> ContentMigration
fn clone(&self) -> ContentMigration
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 ContentMigration
impl Debug for ContentMigration
Source§impl<'de> Deserialize<'de> for ContentMigration
impl<'de> Deserialize<'de> for ContentMigration
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 ContentMigration
impl !RefUnwindSafe for ContentMigration
impl Send for ContentMigration
impl Sync for ContentMigration
impl Unpin for ContentMigration
impl UnsafeUnpin for ContentMigration
impl !UnwindSafe for ContentMigration
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