pub struct StatementResult { /* private fields */ }Expand description
Structure that contains zero, one, or more Statements.
The statements field will contain the result of a GET Statement
Resource. If it is incomplete (due for example to pagination), the rest can
be accessed at the IRL provided by the more property.
Implementations§
Source§impl StatementResult
impl StatementResult
Sourcepub fn from(statements: Vec<Statement>) -> Self
pub fn from(statements: Vec<Statement>) -> Self
Construct a new instance from a given collection of Statements.
Sourcepub fn statements(&self) -> &Vec<Statement>
pub fn statements(&self) -> &Vec<Statement>
Return a reference to this instance’s statements collection.
Trait Implementations§
Source§impl Debug for StatementResult
impl Debug for StatementResult
Source§impl Default for StatementResult
impl Default for StatementResult
Source§fn default() -> StatementResult
fn default() -> StatementResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatementResult
impl<'de> Deserialize<'de> for StatementResult
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
Source§impl Display for StatementResult
impl Display for StatementResult
Source§impl From<StatementResult> for StatementResultId
impl From<StatementResult> for StatementResultId
Source§fn from(value: StatementResult) -> Self
fn from(value: StatementResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StatementResult
impl RefUnwindSafe for StatementResult
impl Send for StatementResult
impl Sync for StatementResult
impl Unpin for StatementResult
impl UnsafeUnpin for StatementResult
impl UnwindSafe for StatementResult
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.