Struct MultistatusElement

Source
pub struct MultistatusElement<PropType: XmlSerialize, MemberPropType: XmlSerialize> {
    pub responses: Vec<ResponseElement<PropType>>,
    pub member_responses: Vec<ResponseElement<MemberPropType>>,
    pub sync_token: Option<String>,
}

Fields§

§responses: Vec<ResponseElement<PropType>>§member_responses: Vec<ResponseElement<MemberPropType>>§sync_token: Option<String>

Trait Implementations§

Source§

impl<T1: XmlSerialize, T2: XmlSerialize> Default for MultistatusElement<T1, T2>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T1: XmlSerialize, T2: XmlSerialize> Responder for MultistatusElement<T1, T2>

Source§

type Body = BoxBody

Source§

fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where Self: Sized,

Wraps responder to allow alteration of its response. Read more
Source§

impl<PropType: XmlSerialize, MemberPropType: XmlSerialize> XmlRootTag for MultistatusElement<PropType, MemberPropType>

Source§

fn root_tag() -> &'static [u8]

Source§

fn root_ns() -> Option<Namespace<'static>>

Source§

fn root_ns_prefixes() -> HashMap<Namespace<'static>, &'static [u8]>

Source§

impl<PropType: XmlSerialize, MemberPropType: XmlSerialize> XmlSerialize for MultistatusElement<PropType, MemberPropType>

Source§

fn serialize<W: Write>( &self, ns: Option<Namespace<'_>>, tag: Option<&[u8]>, namespaces: &HashMap<Namespace<'_>, &[u8]>, writer: &mut Writer<W>, ) -> Result<()>

Source§

fn attributes<'a>(&self) -> Option<Vec<Attribute<'a>>>

Auto Trait Implementations§

§

impl<PropType, MemberPropType> Freeze for MultistatusElement<PropType, MemberPropType>

§

impl<PropType, MemberPropType> RefUnwindSafe for MultistatusElement<PropType, MemberPropType>
where PropType: RefUnwindSafe, MemberPropType: RefUnwindSafe,

§

impl<PropType, MemberPropType> Send for MultistatusElement<PropType, MemberPropType>
where PropType: Send, MemberPropType: Send,

§

impl<PropType, MemberPropType> Sync for MultistatusElement<PropType, MemberPropType>
where PropType: Sync, MemberPropType: Sync,

§

impl<PropType, MemberPropType> Unpin for MultistatusElement<PropType, MemberPropType>
where PropType: Unpin, MemberPropType: Unpin,

§

impl<PropType, MemberPropType> UnwindSafe for MultistatusElement<PropType, MemberPropType>
where PropType: UnwindSafe, MemberPropType: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> XmlSerializeRoot for T

Source§

fn serialize_root<W>(&self, writer: &mut Writer<W>) -> Result<(), Error>
where W: Write,

§

impl<T> ErasedDestructor for T
where T: 'static,