[−][src]Struct sit_core::repository::Item
An item residing in a repository
Methods
impl<'a> Item<'a>
[src]
impl<'a> Item<'a>
pub fn new_record_in<'f, P: AsRef<Path>, F: File + 'f, I: Into<OrderedFiles<'f, F>>>(
&self,
path: P,
files: I,
link_parents: bool
) -> Result<<Item<'a> as ItemTrait>::Record, <Item<'a> as ItemTrait>::Error> where
F::Read: 'f,
[src]
pub fn new_record_in<'f, P: AsRef<Path>, F: File + 'f, I: Into<OrderedFiles<'f, F>>>(
&self,
path: P,
files: I,
link_parents: bool
) -> Result<<Item<'a> as ItemTrait>::Record, <Item<'a> as ItemTrait>::Error> where
F::Read: 'f,
Trait Implementations
impl<'a> HasPath for Item<'a>
[src]
impl<'a> HasPath for Item<'a>
impl<'a> Item for Item<'a>
[src]
impl<'a> Item for Item<'a>
type Error = Error
Error type used by the implementation
type Record = Record<'a>
Record type used by the implementation
type Records = Vec<Record<'a>>
Type used to list records that can be referenced as a slice of records
type RecordIter = ItemRecordIter<'a>
Iterator over lists of records
fn id(&self) -> &str
[src]
fn id(&self) -> &str
Issue must have an ID, ideally human-readable
fn record_iter(&self) -> Result<Self::RecordIter, Self::Error>
[src]
fn record_iter(&self) -> Result<Self::RecordIter, Self::Error>
Iterates through the tree of records
fn new_record<'f, F: File + 'f, I: Into<OrderedFiles<'f, F>>>(
&self,
files: I,
link_parents: bool
) -> Result<Self::Record, Self::Error> where
F::Read: 'f,
[src]
fn new_record<'f, F: File + 'f, I: Into<OrderedFiles<'f, F>>>(
&self,
files: I,
link_parents: bool
) -> Result<Self::Record, Self::Error> where
F::Read: 'f,
Creates and returns a new record. Read more
impl<'a> PartialEq<Item<'a>> for Item<'a>
[src]
impl<'a> PartialEq<Item<'a>> for Item<'a>
fn eq(&self, other: &Item<'a>) -> bool
[src]
fn eq(&self, other: &Item<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Item<'a>) -> bool
[src]
fn ne(&self, other: &Item<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for Item<'a>
[src]
impl<'a> Debug for Item<'a>
Auto Trait Implementations
Blanket Implementations
impl<T> ItemReduction for T where
T: Item,
[src]
impl<T> ItemReduction for T where
T: Item,
fn reduce_with_reducer<R: Reducer<State = Map<String, Value>, Item = Self::Record>>(
&self,
reducer: &mut R
) -> Result<Map<String, Value>, ReductionError<Self::Error>>
[src]
fn reduce_with_reducer<R: Reducer<State = Map<String, Value>, Item = Self::Record>>(
&self,
reducer: &mut R
) -> Result<Map<String, Value>, ReductionError<Self::Error>>
Reduces item with a given [Reducer
] Read more
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self