Struct canvas_lms_connector::CanvasInfo
source · pub struct CanvasInfo {
pub url_canvas: String,
pub token_canvas: String,
}
Expand description
Stores configuration information for accessing the Canvas API.
This structure holds essential data required for making authenticated requests to the Canvas API. It includes the base URL of the Canvas instance and the API token used for authentication.
Fields
url_canvas
: The base URL of the Canvas API endpoint.token_canvas
: The API token used for authenticating requests to the Canvas system.
Examples
// Example of creating a CanvasInfo instance
let canvas_info = CanvasInfo {
url_canvas: "https://canvas.example.com".to_string(),
token_canvas: "your_api_token".to_string(),
};
Fields§
§url_canvas: String
§token_canvas: String
Trait Implementations§
source§impl Clone for CanvasInfo
impl Clone for CanvasInfo
source§fn clone(&self) -> CanvasInfo
fn clone(&self) -> CanvasInfo
Returns a copy of the value. Read more
1.0.0 · 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 CanvasInfo
impl Debug for CanvasInfo
source§impl Default for CanvasInfo
impl Default for CanvasInfo
source§fn default() -> CanvasInfo
fn default() -> CanvasInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CanvasInfo
impl<'de> Deserialize<'de> for CanvasInfo
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 RefUnwindSafe for CanvasInfo
impl Send for CanvasInfo
impl Sync for CanvasInfo
impl Unpin for CanvasInfo
impl UnwindSafe for CanvasInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.