pub struct About { /* private fields */ }Expand description
Structure containing information about an LRS, including supported extensions and xAPI version(s).
Implementations§
Source§impl About
impl About
Sourcepub fn new(versions: Vec<MyVersion>, extensions: Extensions) -> Self
pub fn new(versions: Vec<MyVersion>, extensions: Extensions) -> Self
Construct a new instance.
Sourcepub fn versions(&self) -> Result<Vec<MyVersion>, DataError>
pub fn versions(&self) -> Result<Vec<MyVersion>, DataError>
Return the list of supported xAPI versions.
Sourcepub fn extensions(&self) -> Option<&Extensions>
pub fn extensions(&self) -> Option<&Extensions>
Return supported Extensions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for About
impl<'de> Deserialize<'de> for About
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 StructuralPartialEq for About
Auto Trait Implementations§
impl Freeze for About
impl RefUnwindSafe for About
impl Send for About
impl Sync for About
impl Unpin for About
impl UnsafeUnpin for About
impl UnwindSafe for About
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.