pub struct CreateSource {
pub name: String,
pub parent: Option<SourceId>,
pub is_recurring: bool,
}Fields§
§name: String§parent: Option<SourceId>§is_recurring: boolTrait Implementations§
Source§impl BaseLen for CreateSource
Available on crate features alloc or std only.
impl BaseLen for CreateSource
Available on crate features
alloc or std only.Source§impl Clone for CreateSource
impl Clone for CreateSource
impl<Name: Encode + Compatible<String>, Parent: Encode + Compatible<Option<SourceId>>> Compatible<CreateSource> for CreateSourceGen<Name, Parent>
impl Compatible<CreateSource> for CreateSource
Available on crate features
alloc or std only.impl<'a> Compatible<CreateSource> for CreateSourceLazy<'a>
Available on crate features
alloc or std only.impl<Name: Encode + Compatible<String>, Parent: Encode + Compatible<Option<SourceId>>> Compatible<CreateSourceGen<Name, Parent>> for CreateSource
impl<'a> Compatible<CreateSourceLazy<'a>> for CreateSource
Available on crate features
alloc or std only.Source§impl Debug for CreateSource
impl Debug for CreateSource
Source§impl<'a> Decode<'a> for CreateSource
Available on crate features alloc or std only.
impl<'a> Decode<'a> for CreateSource
Available on crate features
alloc or std only.fn decode(cursor: &DecodeCursor<'a>) -> DecodeResult<Self>
Source§impl Encode for CreateSource
impl Encode for CreateSource
fn scratch_len(&self) -> usize
fn encode(&self, cursor: &mut EncodeCursor<'_>)
impl Eq for CreateSource
Source§impl Hash for CreateSource
impl Hash for CreateSource
Source§impl Ord for CreateSource
impl Ord for CreateSource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl Owned for CreateSource
Available on crate features alloc or std only.
impl Owned for CreateSource
Available on crate features
alloc or std only.type Lazy<'a> = CreateSourceLazy<'a>
fn lazy_to_owned(lazy: Self::Lazy<'_>) -> DecodeResult<Self>
Source§impl PartialEq for CreateSource
impl PartialEq for CreateSource
Source§impl PartialOrd for CreateSource
impl PartialOrd for CreateSource
impl StructuralPartialEq for CreateSource
Source§impl<'a> TryFrom<CreateSourceLazy<'a>> for CreateSource
Available on crate features alloc or std only.
impl<'a> TryFrom<CreateSourceLazy<'a>> for CreateSource
Available on crate features
alloc or std only.Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CreateSource
impl RefUnwindSafe for CreateSource
impl Send for CreateSource
impl Sync for CreateSource
impl Unpin for CreateSource
impl UnsafeUnpin for CreateSource
impl UnwindSafe for CreateSource
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