pub struct AttributeBlock {
pub name: String,
pub head: Option<String>,
pub lines: Vec<String>,
}Expand description
One Gopher+ attribute block.
A block opens with + in column one followed by its name and a colon;
every line belonging to it begins with a space. A server must return
+INFO for every item it lists.
Fields§
§name: StringThe block name without its leading +, e.g. INFO, ADMIN, VIEWS.
head: Option<String>Text on the block’s own line after the colon. +INFO carries the
item’s gopher descriptor here; most other blocks leave it empty.
lines: Vec<String>The block’s continuation lines, each with its leading space removed.
Implementations§
Trait Implementations§
Source§impl Clone for AttributeBlock
impl Clone for AttributeBlock
Source§fn clone(&self) -> AttributeBlock
fn clone(&self) -> AttributeBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeBlock
impl Debug for AttributeBlock
impl Eq for AttributeBlock
Source§impl PartialEq for AttributeBlock
impl PartialEq for AttributeBlock
impl StructuralPartialEq for AttributeBlock
Auto Trait Implementations§
impl Freeze for AttributeBlock
impl RefUnwindSafe for AttributeBlock
impl Send for AttributeBlock
impl Sync for AttributeBlock
impl Unpin for AttributeBlock
impl UnsafeUnpin for AttributeBlock
impl UnwindSafe for AttributeBlock
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